Package dev.boze.api.setting
Class SettingMode
- All Implemented Interfaces:
Serializable<Integer>
-
Field Summary
Fields inherited from class dev.boze.api.setting.SettingBase
description, name, owner
-
Constructor Summary
ConstructorDescriptionSettingMode
(ToggleableModule owner, String name, String description, List<String> modes) SettingMode
(ToggleableModule owner, String name, String description, List<String> modes, int mode) -
Method Summary
-
Constructor Details
-
SettingMode
-
SettingMode
public SettingMode(ToggleableModule owner, String name, String description, List<String> modes, int mode)
-
-
Method Details
-
getModes
-
getModeName
-
getValue
- Specified by:
getValue
in classSettingBase<Integer>
-
setValue
- Specified by:
setValue
in classSettingBase<Integer>
-
reset
- Specified by:
reset
in classSettingBase<Integer>
-
toJson
public com.google.gson.JsonObject toJson()- Returns:
- The object as a JsonObject
-
fromJson
- Parameters:
object
- The JsonObject to deserialize- Returns:
- The deserialized object
-