public EnumInteractionResult a( EntityHuman entityhuman, World world, BlockPosition blockposition, EnumHand enumhand, EnumDirection enumdirection, float f, float f1, float f2) { IBlockData iblockdata = world.getType(blockposition); if (iblockdata.getBlock() == Blocks.JUKEBOX && !((Boolean) iblockdata.get(BlockJukeBox.HAS_RECORD)).booleanValue()) { if (!world.isClientSide) { if (true) return EnumInteractionResult.SUCCESS; // CraftBukkit - handled in ItemStack ItemStack itemstack = entityhuman.b(enumhand); ((BlockJukeBox) Blocks.JUKEBOX).a(world, blockposition, iblockdata, itemstack); world.a((EntityHuman) null, 1010, blockposition, Item.getId(this)); itemstack.subtract(1); entityhuman.b(StatisticList.Z); } return EnumInteractionResult.SUCCESS; } else { return EnumInteractionResult.PASS; } }