コード例 #1
0
 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);
 }
コード例 #2
0
 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);
 }