Class Guis
java.lang.Object
dev.boze.api.gui.Guis
Opens the themed GUI and gives access to the open session.
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisOpen()static GuiModelmodel()static voidOpens the module GUI with the active theme.static voidopenEditor(GuiEditor editor) Opens an editor made withGuiEditors: on top of the open GUI's editors, or on a screen of its own when the themed GUI is not open.static voidOpens the HUD editor with the active theme.static GuiSessionsession()
-
Method Details
-
openClickGui
public static void openClickGui()Opens the module GUI with the active theme. -
openHudEditor
public static void openHudEditor()Opens the HUD editor with the active theme. Needs a world. -
openEditor
Opens an editor made withGuiEditors: on top of the open GUI's editors, or on a screen of its own when the themed GUI is not open. That screen returns to the screen before it when the editor closes. Call it on the render thread.- Parameters:
editor- The editor to open
-
isOpen
public static boolean isOpen()- Returns:
- Whether a themed GUI session is open
-
session
- Returns:
- The open session, or null
-
model
- Returns:
- The GUI's view of every module, category and setting
-