public void func_71863_a( World p_71863_1_, int p_71863_2_, int p_71863_3_, int p_71863_4_, int p_71863_5_) { super.func_71863_a(p_71863_1_, p_71863_2_, p_71863_3_, p_71863_4_, p_71863_5_); TileEntityChest tileentitychest = (TileEntityChest) p_71863_1_.func_72796_p(p_71863_2_, p_71863_3_, p_71863_4_); if (tileentitychest != null) { tileentitychest.func_70321_h(); } }
public void func_71852_a( World p_71852_1_, int p_71852_2_, int p_71852_3_, int p_71852_4_, int p_71852_5_, int p_71852_6_) { TileEntityChest tileentitychest = (TileEntityChest) p_71852_1_.func_72796_p(p_71852_2_, p_71852_3_, p_71852_4_); if (tileentitychest != null) { for (int i = 0; i < tileentitychest.func_70302_i_(); i++) { ItemStack itemstack = tileentitychest.func_70301_a(i); if (itemstack == null) { continue; } float f = field_72293_a.nextFloat() * 0.8F + 0.1F; float f1 = field_72293_a.nextFloat() * 0.8F + 0.1F; float f2 = field_72293_a.nextFloat() * 0.8F + 0.1F; while (itemstack.field_77994_a > 0) { int j = field_72293_a.nextInt(21) + 10; if (j > itemstack.field_77994_a) { j = itemstack.field_77994_a; } itemstack.field_77994_a -= j; EntityItem entityitem = new EntityItem( p_71852_1_, (float) p_71852_2_ + f, (float) p_71852_3_ + f1, (float) p_71852_4_ + f2, new ItemStack(itemstack.field_77993_c, j, itemstack.func_77960_j())); float f3 = 0.05F; entityitem.field_70159_w = (float) field_72293_a.nextGaussian() * f3; entityitem.field_70181_x = (float) field_72293_a.nextGaussian() * f3 + 0.2F; entityitem.field_70179_y = (float) field_72293_a.nextGaussian() * f3; if (itemstack.func_77942_o()) { entityitem.field_70294_a.func_77982_d( (NBTTagCompound) itemstack.func_77978_p().func_74737_b()); } p_71852_1_.func_72838_d(entityitem); } } } super.func_71852_a(p_71852_1_, p_71852_2_, p_71852_3_, p_71852_4_, p_71852_5_, p_71852_6_); }
public boolean func_71903_a( World p_71903_1_, int p_71903_2_, int p_71903_3_, int p_71903_4_, EntityPlayer p_71903_5_, int p_71903_6_, float p_71903_7_, float p_71903_8_, float p_71903_9_) { Object obj = (TileEntityChest) p_71903_1_.func_72796_p(p_71903_2_, p_71903_3_, p_71903_4_); if (obj == null) { return true; } if (p_71903_1_.func_72809_s(p_71903_2_, p_71903_3_ + 1, p_71903_4_)) { return true; } if (func_72292_n(p_71903_1_, p_71903_2_, p_71903_3_, p_71903_4_)) { return true; } if (p_71903_1_.func_72798_a(p_71903_2_ - 1, p_71903_3_, p_71903_4_) == field_71990_ca && (p_71903_1_.func_72809_s(p_71903_2_ - 1, p_71903_3_ + 1, p_71903_4_) || func_72292_n(p_71903_1_, p_71903_2_ - 1, p_71903_3_, p_71903_4_))) { return true; } if (p_71903_1_.func_72798_a(p_71903_2_ + 1, p_71903_3_, p_71903_4_) == field_71990_ca && (p_71903_1_.func_72809_s(p_71903_2_ + 1, p_71903_3_ + 1, p_71903_4_) || func_72292_n(p_71903_1_, p_71903_2_ + 1, p_71903_3_, p_71903_4_))) { return true; } if (p_71903_1_.func_72798_a(p_71903_2_, p_71903_3_, p_71903_4_ - 1) == field_71990_ca && (p_71903_1_.func_72809_s(p_71903_2_, p_71903_3_ + 1, p_71903_4_ - 1) || func_72292_n(p_71903_1_, p_71903_2_, p_71903_3_, p_71903_4_ - 1))) { return true; } if (p_71903_1_.func_72798_a(p_71903_2_, p_71903_3_, p_71903_4_ + 1) == field_71990_ca && (p_71903_1_.func_72809_s(p_71903_2_, p_71903_3_ + 1, p_71903_4_ + 1) || func_72292_n(p_71903_1_, p_71903_2_, p_71903_3_, p_71903_4_ + 1))) { return true; } if (p_71903_1_.func_72798_a(p_71903_2_ - 1, p_71903_3_, p_71903_4_) == field_71990_ca) { obj = new InventoryLargeChest( "container.chestDouble", (TileEntityChest) p_71903_1_.func_72796_p(p_71903_2_ - 1, p_71903_3_, p_71903_4_), ((IInventory) (obj))); } if (p_71903_1_.func_72798_a(p_71903_2_ + 1, p_71903_3_, p_71903_4_) == field_71990_ca) { obj = new InventoryLargeChest( "container.chestDouble", ((IInventory) (obj)), (TileEntityChest) p_71903_1_.func_72796_p(p_71903_2_ + 1, p_71903_3_, p_71903_4_)); } if (p_71903_1_.func_72798_a(p_71903_2_, p_71903_3_, p_71903_4_ - 1) == field_71990_ca) { obj = new InventoryLargeChest( "container.chestDouble", (TileEntityChest) p_71903_1_.func_72796_p(p_71903_2_, p_71903_3_, p_71903_4_ - 1), ((IInventory) (obj))); } if (p_71903_1_.func_72798_a(p_71903_2_, p_71903_3_, p_71903_4_ + 1) == field_71990_ca) { obj = new InventoryLargeChest( "container.chestDouble", ((IInventory) (obj)), (TileEntityChest) p_71903_1_.func_72796_p(p_71903_2_, p_71903_3_, p_71903_4_ + 1)); } if (p_71903_1_.field_72995_K) { return true; } else { p_71903_5_.func_71007_a(((IInventory) (obj))); return true; } }