Package dev.boze.api.option
Class ModeOption<T extends Enum<T>>
java.lang.Object
dev.boze.api.option.Option<T>
dev.boze.api.option.ModeOption<T>
- All Implemented Interfaces:
Serializable<T>
-
Field Summary
Fields inherited from class dev.boze.api.option.Option
description, name, owner
-
Constructor Summary
ConstructorsConstructorDescriptionModeOption
(AddonModule owner, String name, String description, T defaultValue) -
Method Summary
-
Constructor Details
-
ModeOption
-
-
Method Details
-
getEnumClass
-
getModes
-
getModeName
-
getValue
-
setValue
-
reset
-
setValueByName
-
toJson
public com.google.gson.JsonObject toJson()- Returns:
- The object as a JsonObject
-
fromJson
- Parameters:
object
- The JsonObject to deserialize- Returns:
- The deserialized object
-