use of mekanism.common.tile.interfaces.IBoundingBlock in project Mekanism by mekanism.
the class TileEntityBoundingBlock method onNeighborChange.
public void onNeighborChange(Block block, BlockPos neighborPos) {
if (!isRemote()) {
int power = level.getBestNeighborSignal(getBlockPos());
if (currentRedstoneLevel != power) {
IBoundingBlock main = getMain();
if (main != null) {
main.onBoundingBlockPowerChange(worldPosition, currentRedstoneLevel, power);
}
currentRedstoneLevel = power;
}
}
}
Aggregations