if(selection != null) {
IconEIO ioIcon = null;
// INPUT
IoMode mode = selection.config.getIoMode(selection.face);
if(mode == IoMode.PULL) {
ioIcon = IconEIO.INPUT_SMALL_INV;
} else if(mode == IoMode.PUSH) {
ioIcon = IconEIO.OUTPUT_SMALL_INV;
} else if(mode == IoMode.PUSH_PULL) {
ioIcon = IconEIO.INPUT_OUTPUT;
} else if(mode == IoMode.DISABLED) {
ioIcon = IconEIO.DISABLED;
}
y = vph - mc.fontRenderer.FONT_HEIGHT - 2;
mc.fontRenderer.drawString(getLabelForMode(mode), 4, y, ColorUtil.getRGB(Color.white));
if(ioIcon != null) {
int w = mc.fontRenderer.getStringWidth(mode.getLocalisedName());
double xd = (w - ioIcon.width)/2;
xd = Math.max(0, w);
xd /=2;
xd += 4;
xd /= scaledresolution.getScaleFactor();