@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(); }
@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); }
@Override public void onBlockAdded(World world, int x, int y, int z) { super.onBlockAdded(world, x, y, z); recalculatePower(world, x, y, z); }
@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); }