Search in sources :

Example 1 with IBoundingBlock

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;
        }
    }
}
Also used : IBoundingBlock(mekanism.common.tile.interfaces.IBoundingBlock)

Aggregations

IBoundingBlock (mekanism.common.tile.interfaces.IBoundingBlock)1