Remove dead code that has been commended out.
This commit is contained in:
parent
e6fb331bd9
commit
ea5f84785d
|
@ -83,7 +83,6 @@ public class BlockIronChest extends Block
|
||||||
@Override
|
@Override
|
||||||
//@formatter:off
|
//@formatter:off
|
||||||
public boolean onBlockActivated(World worldIn, BlockPos pos, IBlockState state, EntityPlayer playerIn, EnumHand hand, EnumFacing heldItem, float side, float hitX, float hitY)
|
public boolean onBlockActivated(World worldIn, BlockPos pos, IBlockState state, EntityPlayer playerIn, EnumHand hand, EnumFacing heldItem, float side, float hitX, float hitY)
|
||||||
//public boolean onBlockActivated(World world, BlockPos pos, IBlockState blockState, EntityPlayer player, EnumHand hand, ItemStack heldItem, EnumFacing direction, float hitX, float hitY, float hitZ)
|
|
||||||
//@formatter:on
|
//@formatter:on
|
||||||
{
|
{
|
||||||
TileEntity te = worldIn.getTileEntity(pos);
|
TileEntity te = worldIn.getTileEntity(pos);
|
||||||
|
@ -121,7 +120,6 @@ public class BlockIronChest extends Block
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@SideOnly(Side.CLIENT)
|
@SideOnly(Side.CLIENT)
|
||||||
// public void getSubBlocks(Item itemIn, CreativeTabs tab, List<ItemStack> list)
|
|
||||||
public void getSubBlocks(Item itemIn, CreativeTabs tab, NonNullList<ItemStack> list)
|
public void getSubBlocks(Item itemIn, CreativeTabs tab, NonNullList<ItemStack> list)
|
||||||
{
|
{
|
||||||
for (IronChestType type : IronChestType.VALUES)
|
for (IronChestType type : IronChestType.VALUES)
|
||||||
|
|
|
@ -66,8 +66,10 @@ public class IronChest
|
||||||
for (IronChestType typ : IronChestType.VALUES)
|
for (IronChestType typ : IronChestType.VALUES)
|
||||||
{
|
{
|
||||||
if (typ.clazz != null)
|
if (typ.clazz != null)
|
||||||
|
{
|
||||||
GameRegistry.registerTileEntity(typ.clazz, "IronChest." + typ.name());
|
GameRegistry.registerTileEntity(typ.clazz, "IronChest." + typ.name());
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
IronChestType.registerBlocksAndRecipes(ironChestBlock);
|
IronChestType.registerBlocksAndRecipes(ironChestBlock);
|
||||||
ChestChangerType.generateRecipes();
|
ChestChangerType.generateRecipes();
|
||||||
|
|
|
@ -40,7 +40,6 @@ public class ItemChestChanger extends Item
|
||||||
@Override
|
@Override
|
||||||
//@formatter:off
|
//@formatter:off
|
||||||
public EnumActionResult onItemUseFirst(EntityPlayer player, World world, BlockPos pos, EnumFacing side, float hitX, float hitY, float hitZ, EnumHand hand)
|
public EnumActionResult onItemUseFirst(EntityPlayer player, World world, BlockPos pos, EnumFacing side, float hitX, float hitY, float hitZ, EnumHand hand)
|
||||||
//public EnumActionResult onItemUseFirst(ItemStack stack, EntityPlayer playerIn, World worldIn, BlockPos pos, EnumFacing facing, float hitX, float hitY, float hitZ, EnumHand hand)
|
|
||||||
//@formatter:on
|
//@formatter:on
|
||||||
{
|
{
|
||||||
if (world.isRemote)
|
if (world.isRemote)
|
||||||
|
@ -96,7 +95,7 @@ public class ItemChestChanger extends Item
|
||||||
{
|
{
|
||||||
return EnumActionResult.PASS;
|
return EnumActionResult.PASS;
|
||||||
}
|
}
|
||||||
chestContents = NonNullList.<ItemStack> func_191197_a(chest.getSizeInventory(), ItemStack.field_190927_a);//new ItemStack[chest.getSizeInventory()];
|
chestContents = NonNullList.<ItemStack> func_191197_a(chest.getSizeInventory(), ItemStack.field_190927_a);
|
||||||
for (int i = 0; i < chestContents.size(); i++)
|
for (int i = 0; i < chestContents.size(); i++)
|
||||||
{
|
{
|
||||||
chestContents.set(i, chest.getStackInSlot(i));
|
chestContents.set(i, chest.getStackInSlot(i));
|
||||||
|
|
|
@ -194,8 +194,7 @@ public class TileEntityIronChestRenderer extends TileEntitySpecialRenderer<TileE
|
||||||
|
|
||||||
if (this.itemRenderer == null)
|
if (this.itemRenderer == null)
|
||||||
{
|
{
|
||||||
this.itemRenderer = new RenderEntityItem(Minecraft.getMinecraft().getRenderManager(), Minecraft.getMinecraft().getRenderItem())
|
this.itemRenderer = new RenderEntityItem(Minecraft.getMinecraft().getRenderManager(), Minecraft.getMinecraft().getRenderItem()) {
|
||||||
{
|
|
||||||
@Override
|
@Override
|
||||||
public int getModelCount(ItemStack stack)
|
public int getModelCount(ItemStack stack)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue