Class GuiThemes
java.lang.Object
dev.boze.api.gui.GuiThemes
Registry of GUI themes.
Register addon themes from
Register addon themes from
Addon.initialize(). Boze ships
boze:classic, which is used whenever the selected theme is not registered.-
Method Summary
-
Method Details
-
register
Registers a theme. Ids must be unique; a second theme with the same id is rejected.- Parameters:
theme- The theme to register- Throws:
IllegalArgumentException- If a theme with the same id is already registered
-
get
-
all
-
active
- Returns:
- The theme the GUI opens with
-
select
Selects the theme the GUI opens with. An open GUI switches at the start of the next frame.- Parameters:
id- Theme id
-