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 var7 = (TileEntityChest) p_71852_1_.func_72796_p(p_71852_2_, p_71852_3_, p_71852_4_); if (var7 != null) { for (int var8 = 0; var8 < var7.func_70302_i_(); ++var8) { ItemStack var9 = var7.func_70301_a(var8); if (var9 != null) { float var10 = this.field_72293_a.nextFloat() * 0.8F + 0.1F; float var11 = this.field_72293_a.nextFloat() * 0.8F + 0.1F; EntityItem var14; for (float var12 = this.field_72293_a.nextFloat() * 0.8F + 0.1F; var9.field_77994_a > 0; p_71852_1_.func_72838_d(var14)) { int var13 = this.field_72293_a.nextInt(21) + 10; if (var13 > var9.field_77994_a) { var13 = var9.field_77994_a; } var9.field_77994_a -= var13; var14 = new EntityItem( p_71852_1_, (double) ((float) p_71852_2_ + var10), (double) ((float) p_71852_3_ + var11), (double) ((float) p_71852_4_ + var12), new ItemStack(var9.field_77993_c, var13, var9.func_77960_j())); float var15 = 0.05F; var14.field_70159_w = (double) ((float) this.field_72293_a.nextGaussian() * var15); var14.field_70181_x = (double) ((float) this.field_72293_a.nextGaussian() * var15 + 0.2F); var14.field_70179_y = (double) ((float) this.field_72293_a.nextGaussian() * var15); if (var9.func_77942_o()) { var14 .func_92059_d() .func_77982_d((NBTTagCompound) var9.func_77978_p().func_74737_b()); } } } } } super.func_71852_a(p_71852_1_, p_71852_2_, p_71852_3_, p_71852_4_, p_71852_5_, p_71852_6_); }
public ItemStack func_82487_b(IBlockSource p_82487_1_, ItemStack p_82487_2_) { EnumFacing var3 = BlockDispenser.func_100009_j_(p_82487_1_.func_82620_h()); IPosition var4 = BlockDispenser.func_82525_a(p_82487_1_); double var5 = var4.func_82615_a() + (double) ((float) var3.func_82601_c() * 0.3F); double var7 = var4.func_82617_b() + (double) ((float) var3.func_82601_c() * 0.3F); double var9 = var4.func_82616_c() + (double) ((float) var3.func_82599_e() * 0.3F); World var11 = p_82487_1_.func_82618_k(); Random var12 = var11.field_73012_v; double var13 = var12.nextGaussian() * 0.05D + (double) var3.func_82601_c(); double var15 = var12.nextGaussian() * 0.05D + (double) var3.func_96559_d(); double var17 = var12.nextGaussian() * 0.05D + (double) var3.func_82599_e(); var11.func_72838_d(new EntitySmallFireball(var11, var5, var7, var9, var13, var15, var17)); p_82487_2_.func_77979_a(1); return p_82487_2_; }
public void func_72276_j_(World p_72276_1_, int p_72276_2_, int p_72276_3_, int p_72276_4_) { if (!p_72276_1_.field_72995_K) { TileEntityRecordPlayer var5 = (TileEntityRecordPlayer) p_72276_1_.func_72796_p(p_72276_2_, p_72276_3_, p_72276_4_); if (var5 != null) { ItemStack var6 = var5.func_96097_a(); if (var6 != null) { p_72276_1_.func_72926_e(1005, p_72276_2_, p_72276_3_, p_72276_4_, 0); p_72276_1_.func_72934_a((String) null, p_72276_2_, p_72276_3_, p_72276_4_); var5.func_96098_a((ItemStack) null); p_72276_1_.func_72921_c(p_72276_2_, p_72276_3_, p_72276_4_, 0, 2); float var7 = 0.7F; double var8 = (double) (p_72276_1_.field_73012_v.nextFloat() * var7) + (double) (1.0F - var7) * 0.5D; double var10 = (double) (p_72276_1_.field_73012_v.nextFloat() * var7) + (double) (1.0F - var7) * 0.2D + 0.6D; double var12 = (double) (p_72276_1_.field_73012_v.nextFloat() * var7) + (double) (1.0F - var7) * 0.5D; ItemStack var14 = var6.func_77946_l(); EntityItem var15 = new EntityItem( p_72276_1_, (double) p_72276_2_ + var8, (double) p_72276_3_ + var10, (double) p_72276_4_ + var12, var14); var15.field_70293_c = 10; p_72276_1_.func_72838_d(var15); } } } }