Exemple #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();
 }
Exemple #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);
 }
Exemple #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);
 }
Exemple #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);
 }