Search in sources :

Example 1 with SideConfig

use of blusunrize.immersiveengineering.api.IEEnums.SideConfig in project ImmersiveEngineering by BluSunrize.

the class TileEntityCapacitorLV method getOverlayText.

@Override
public String[] getOverlayText(EntityPlayer player, RayTraceResult mop, boolean hammer) {
    if (hammer && IEConfig.colourblindSupport) {
        SideConfig i = sideConfig[Math.min(sideConfig.length - 1, mop.sideHit.ordinal())];
        SideConfig j = sideConfig[Math.min(sideConfig.length - 1, mop.sideHit.getOpposite().ordinal())];
        return new String[] { I18n.format(Lib.DESC_INFO + "blockSide.facing") + ": " + I18n.format(Lib.DESC_INFO + "blockSide.connectEnergy." + i), I18n.format(Lib.DESC_INFO + "blockSide.opposite") + ": " + I18n.format(Lib.DESC_INFO + "blockSide.connectEnergy." + j) };
    }
    return null;
}
Also used : SideConfig(blusunrize.immersiveengineering.api.IEEnums.SideConfig) IComparatorOverride(blusunrize.immersiveengineering.common.blocks.IEBlockInterfaces.IComparatorOverride)

Aggregations

SideConfig (blusunrize.immersiveengineering.api.IEEnums.SideConfig)1 IComparatorOverride (blusunrize.immersiveengineering.common.blocks.IEBlockInterfaces.IComparatorOverride)1