Exemplo n.º 1
0
 @Override
 public void updateTick(World world, int x, int y, int z, Random random) {
   super.updateTick(world, x, y, z, random);
   // recalculatePower(world, x, y, z);
   TileRedstoneCircuit tile = getTile(world, x, y, z);
   tile.notifyBlocksOfMyChange();
   tile.notifyOutputNeighbour();
   // tile.notifyOutputNeighbourTwo();
 }
Exemplo n.º 2
0
 @Override
 public void breakBlock(World world, int x, int y, int z, Block block, int meta) {
   getTile(world, x, y, z).forceUpdateNeighbours();
   super.breakBlock(world, x, y, z, block, meta);
 }
Exemplo n.º 3
0
 @Override
 public void onBlockAdded(World world, int x, int y, int z) {
   super.onBlockAdded(world, x, y, z);
   recalculatePower(world, x, y, z);
 }
Exemplo n.º 4
0
 @Override
 public void onNeighborBlockChange(World world, int x, int y, int z, Block neighbour) {
   super.onNeighborBlockChange(world, x, y, z, neighbour);
   recalculatePower(world, x, y, z);
 }