Search in sources :

Example 1 with GuiHudCustomization

use of am2.guis.GuiHudCustomization in project ArsMagica2 by Mithion.

the class ConfigureAMUICommand method showIfQueued.

public static void showIfQueued() {
    if (showGUI) {
        Minecraft.getMinecraft().displayGuiScreen(new GuiHudCustomization());
        showGUI = false;
    }
}
Also used : GuiHudCustomization(am2.guis.GuiHudCustomization)

Example 2 with GuiHudCustomization

use of am2.guis.GuiHudCustomization in project ArsMagica2 by Mithion.

the class ClientTickHandler method renderOverlays.

public void renderOverlays() {
    GuiScreen guiScreen = Minecraft.getMinecraft().currentScreen;
    if (Minecraft.getMinecraft().thePlayer != null && Minecraft.getMinecraft().theWorld != null && (Minecraft.getMinecraft().inGameHasFocus || guiScreen instanceof GuiHudCustomization)) {
        this.inGameGui.renderGameOverlay();
        ConfigureAMUICommand.showIfQueued();
    }
}
Also used : GuiHudCustomization(am2.guis.GuiHudCustomization) GuiScreen(net.minecraft.client.gui.GuiScreen)

Aggregations

GuiHudCustomization (am2.guis.GuiHudCustomization)2 GuiScreen (net.minecraft.client.gui.GuiScreen)1