Search in sources :

Example 1 with LayoutStyle

use of mcjty.theoneprobe.apiimpl.styles.LayoutStyle in project pnc-repressurized by TeamPneumatic.

the class TOPCallback method handlePressureTube.

public static void handlePressureTube(ProbeMode mode, IProbeInfo probeInfo, TileEntityPressureTube te, EnumFacing face) {
    if (face != null) {
        TubeModule module = te.modules[face.ordinal()];
        if (module != null) {
            IProbeInfo vert = probeInfo.vertical(new LayoutStyle().borderColor(0xFF4040FF).spacing(3));
            List<String> currenttip = new ArrayList<>();
            module.addInfo(currenttip);
            for (String s : currenttip) vert.text(s);
        }
    }
}
Also used : LayoutStyle(mcjty.theoneprobe.apiimpl.styles.LayoutStyle) TubeModule(me.desht.pneumaticcraft.common.block.tubes.TubeModule) ArrayList(java.util.ArrayList)

Aggregations

ArrayList (java.util.ArrayList)1 LayoutStyle (mcjty.theoneprobe.apiimpl.styles.LayoutStyle)1 TubeModule (me.desht.pneumaticcraft.common.block.tubes.TubeModule)1