The Aludel, Alchemical Chest, and Calcinator all render again in MC 1.5

This commit is contained in:
pahimar 2013-03-06 19:02:12 -05:00
parent 30d3e3aef5
commit a1733467d3
5 changed files with 20 additions and 5 deletions

View file

@ -1,8 +1,14 @@
package com.pahimar.ee3.block;
import com.pahimar.ee3.lib.Reference;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.block.BlockContainer;
import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.texture.IconRegister;
import net.minecraft.entity.EntityLiving;
import net.minecraft.item.ItemStack;
import net.minecraft.util.MathHelper;
import net.minecraft.world.World;
import net.minecraftforge.common.ForgeDirection;
@ -23,10 +29,16 @@ public abstract class BlockEE extends BlockContainer {
super(id, material);
}
@SideOnly(Side.CLIENT)
public void func_94332_a(IconRegister iconRegister) {
this.field_94336_cN = iconRegister.func_94245_a(Reference.MOD_ID.toLowerCase() + ":"+ this.getUnlocalizedName().substring(this.getUnlocalizedName().indexOf(".") + 1));
}
/**
* Sets the direction of the block when placed
*/
public void onBlockPlacedBy(World world, int x, int y, int z, EntityLiving entityLiving) {
public void onBlockPlacedBy(World world, int x, int y, int z, EntityLiving entityLiving, ItemStack itemStack) {
int direction = 0;
int facing = MathHelper.floor_double((double)(entityLiving.rotationYaw * 4.0F / 360.0F) + 0.5D) & 3;

View file

@ -3,6 +3,9 @@ package com.pahimar.ee3.block;
import net.minecraft.block.Block;
import com.pahimar.ee3.lib.BlockIds;
import com.pahimar.ee3.lib.Strings;
import cpw.mods.fml.common.registry.GameRegistry;
/**
* ModBlocks
@ -30,9 +33,9 @@ public class ModBlocks {
redWaterStill = new BlockRedWaterStill(BlockIds.RED_WATER_STILL);
redWaterFlowing = new BlockRedWaterFlowing(BlockIds.RED_WATER_STILL - 1);
//GameRegistry.registerBlock(calcinator, Strings.CALCINATOR_NAME);
//GameRegistry.registerBlock(aludel, Strings.ALUDEL_NAME);
//GameRegistry.registerBlock(alchemicalChest, Strings.ALCHEMICAL_CHEST_NAME);
GameRegistry.registerBlock(calcinator, Strings.CALCINATOR_NAME);
GameRegistry.registerBlock(aludel, Strings.ALUDEL_NAME);
GameRegistry.registerBlock(alchemicalChest, Strings.ALCHEMICAL_CHEST_NAME);
//GameRegistry.registerBlock(redWaterStill, Strings.RED_WATER_STILL_NAME);
//GameRegistry.registerBlock(redWaterFlowing, Strings.RED_WATER_FLOWING_NAME);

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB