Package dev.boze.api.addon.module
Class ToggleableModule
java.lang.Object
dev.boze.api.addon.module.ToggleableModule
- All Implemented Interfaces:
Serializable<ToggleableModule>
-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
settings
-
-
Constructor Details
-
ToggleableModule
-
-
Method Details
-
getName
-
getTitle
-
setTitle
-
getDescription
-
getState
public boolean getState() -
setState
public boolean setState(boolean newState) -
onEnable
protected void onEnable() -
onDisable
protected void onDisable() -
getBind
-
setBind
-
toJson
public com.google.gson.JsonObject toJson()- Specified by:
toJson
in interfaceSerializable<ToggleableModule>
- Returns:
- The object as a JsonObject
-
fromJson
- Specified by:
fromJson
in interfaceSerializable<ToggleableModule>
- Parameters:
object
- The JsonObject to deserialize- Returns:
- The deserialized object
-