@Override
protected void drawForeground() {
drawTabIcon(CoreTextures.ICON_CONFIG);
if (!isFullyOpened()) {
return;
}
getFontRenderer().drawStringWithShadow(StringHelper.localize("info.cofh.configuration"), sideOffset() + 18, 6, headerColor);
RenderHelper.setBlockTextureSheet();
GlStateManager.enableBlend();
GlStateManager.blendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);
for (int pass = 0; pass < myTileTexture.getNumPasses(); pass++) {
gui.drawIcon(myTileTexture.getTexture(BlockHelper.SIDE_ABOVE[myTileFacing.getFacing()], pass), 40, 24);
gui.drawIcon(myTileTexture.getTexture(BlockHelper.SIDE_LEFT[myTileFacing.getFacing()], pass), 20, 44);
gui.drawIcon(myTileTexture.getTexture(myTileFacing.getFacing(), pass), 40, 44);
gui.drawIcon(myTileTexture.getTexture(BlockHelper.SIDE_RIGHT[myTileFacing.getFacing()], pass), 60, 44);
gui.drawIcon(myTileTexture.getTexture(BlockHelper.SIDE_BELOW[myTileFacing.getFacing()], pass), 40, 64);
gui.drawIcon(myTileTexture.getTexture(BlockHelper.SIDE_OPPOSITE[myTileFacing.getFacing()], pass), 60, 64);
}
GlStateManager.disableBlend();
RenderHelper.setDefaultFontTextureSheet();
GlStateManager.color(1.0F, 1.0F, 1.0F, 1.0F);
}