Interface ITheme
- All Superinterfaces:
org.rusherhack.core.feature.IFeature
,org.rusherhack.core.feature.IFeatureConfigurable
,org.rusherhack.core.interfaces.INamed
,org.rusherhack.core.serialize.ISerializable<com.google.gson.JsonElement>
,org.rusherhack.core.serialize.JsonSerializable
- All Known Implementing Classes:
ThemeBase
public interface ITheme
extends org.rusherhack.core.feature.IFeatureConfigurable, org.rusherhack.core.serialize.JsonSerializable
Interface for creating themes.
A theme is a feature which changes the look and feel of the menus.
-
Method Summary
Modifier and TypeMethodDescriptiondefault boolean
deserialize
(com.google.gson.JsonElement jsonElement) default @Nullable PanelHandlerBase<?>
This theme's ClickGUI handlerdefault @Nullable HudHandlerBase
This theme's HUD handlerdefault Color
default @Nullable WindowHandlerBase
This theme's window handlerdefault void
Called when rusherhack is finished loading, and the theme should be initialized.default com.google.gson.JsonElement
Methods inherited from interface org.rusherhack.core.feature.IFeature
getDescription
Methods inherited from interface org.rusherhack.core.feature.IFeatureConfigurable
getSetting, getSettings, registerSettings, reset
Methods inherited from interface org.rusherhack.core.interfaces.INamed
getAliases, getDisplayName, getName
Methods inherited from interface org.rusherhack.core.serialize.ISerializable
shouldAutoSave, shouldSerialize
-
Method Details
-
initialize
default void initialize()Called when rusherhack is finished loading, and the theme should be initialized. -
getClickGuiHandler
This theme's ClickGUI handler- Returns:
- panel handler for the ClickGUI, or null if this theme does not have a ClickGUI
-
getHudHandler
This theme's HUD handler- Returns:
- the hud handler, or null if this theme does not have a HUD
-
getWindowHandler
This theme's window handler- Returns:
- the window handler, or null if this theme does not have a window handler
-
getColorSetting
ColorSetting getColorSetting()- Returns:
- The ColorSetting for this theme
-
getPrimaryColor
-
serialize
default com.google.gson.JsonElement serialize()- Specified by:
serialize
in interfaceorg.rusherhack.core.serialize.ISerializable<com.google.gson.JsonElement>
-
deserialize
default boolean deserialize(com.google.gson.JsonElement jsonElement) - Specified by:
deserialize
in interfaceorg.rusherhack.core.serialize.ISerializable<com.google.gson.JsonElement>
-