public boolean onBlockEventReceived(World world, int x, int y, int z, int par5, int par6) { super.onBlockEventReceived(world, x, y, z, par5, par6); TileEntity tile = world.getTileEntity(x, y, z); return tile != null && tile.receiveClientEvent(par5, par6); }
public void breakBlock(World world, int x, int y, int z, Block block, int meta) { super.breakBlock(world, x, y, z, block, meta); world.removeTileEntity(x, y, z); }