public virtual void Func_28035_b_(net.minecraft.src.World world, int i, int j, int k) { if (world.singleplayerWorld) { return; } net.minecraft.src.TileEntityRecordPlayer tileentityrecordplayer = (net.minecraft.src.TileEntityRecordPlayer)world.GetBlockTileEntity(i, j, k); if (tileentityrecordplayer == null) { return; // CRAFTBUKKIT } int l = tileentityrecordplayer.field_28009_a; if (l == 0) { return; } else { world.SendSoundEffectToAllPlayersWithin64(1005, i, j, k, 0); world.PlayRecord(null, i, j, k); tileentityrecordplayer.field_28009_a = 0; tileentityrecordplayer.OnInventoryChanged(); world.SetBlockMetadataWithNotify(i, j, k, 0); int i1 = l; float f = 0.7F; double d = (double)(world.rand.NextFloat() * f) + (double)(1.0F - f) * 0.5D; double d1 = (double)(world.rand.NextFloat() * f) + (double)(1.0F - f) * 0.20000000000000001D + 0.59999999999999998D; double d2 = (double)(world.rand.NextFloat() * f) + (double)(1.0F - f) * 0.5D; net.minecraft.src.EntityItem entityitem = new net.minecraft.src.EntityItem(world, (double)i + d, (double)j + d1, (double)k + d2, new net.minecraft.src.ItemStack(i1 , 1, 0)); entityitem.delayBeforeCanPickup = 10; world.AddEntity(entityitem); return; } }