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
|
||||
//@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 world, BlockPos pos, IBlockState blockState, EntityPlayer player, EnumHand hand, ItemStack heldItem, EnumFacing direction, float hitX, float hitY, float hitZ)
|
||||
//@formatter:on
|
||||
{
|
||||
TileEntity te = worldIn.getTileEntity(pos);
|
||||
|
@ -121,7 +120,6 @@ public class BlockIronChest extends Block
|
|||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
// public void getSubBlocks(Item itemIn, CreativeTabs tab, List<ItemStack> list)
|
||||
public void getSubBlocks(Item itemIn, CreativeTabs tab, NonNullList<ItemStack> list)
|
||||
{
|
||||
for (IronChestType type : IronChestType.VALUES)
|
||||
|
|
|
@ -66,7 +66,9 @@ public class IronChest
|
|||
for (IronChestType typ : IronChestType.VALUES)
|
||||
{
|
||||
if (typ.clazz != null)
|
||||
{
|
||||
GameRegistry.registerTileEntity(typ.clazz, "IronChest." + typ.name());
|
||||
}
|
||||
}
|
||||
|
||||
IronChestType.registerBlocksAndRecipes(ironChestBlock);
|
||||
|
|
|
@ -40,7 +40,6 @@ public class ItemChestChanger extends Item
|
|||
@Override
|
||||
//@formatter:off
|
||||
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
|
||||
{
|
||||
if (world.isRemote)
|
||||
|
@ -96,7 +95,7 @@ public class ItemChestChanger extends Item
|
|||
{
|
||||
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++)
|
||||
{
|
||||
chestContents.set(i, chest.getStackInSlot(i));
|
||||
|
|
|
@ -194,8 +194,7 @@ public class TileEntityIronChestRenderer extends TileEntitySpecialRenderer<TileE
|
|||
|
||||
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
|
||||
public int getModelCount(ItemStack stack)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue