Class Guis

java.lang.Object
dev.boze.api.gui.Guis

public final class Guis extends Object
Opens the themed GUI and gives access to the open session.
  • 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

      public static void openEditor(GuiEditor editor)
      Opens an editor made with GuiEditors: 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

      public static GuiSession session()
      Returns:
      The open session, or null
    • model

      public static GuiModel model()
      Returns:
      The GUI's view of every module, category and setting