Package dev.boze.api.setting
Class SettingBind
- All Implemented Interfaces:
Serializable<Bind>
,Bind
-
Field Summary
Fields inherited from class dev.boze.api.setting.SettingBase
description, name, owner
-
Constructor Summary
ConstructorDescriptionSettingBind
(ToggleableModule owner, String name, String description) SettingBind
(ToggleableModule owner, String name, String description, int bind, boolean isButton) -
Method Summary
-
Constructor Details
-
SettingBind
-
SettingBind
public SettingBind(ToggleableModule owner, String name, String description, int bind, boolean isButton)
-
-
Method Details
-
getValue
- Specified by:
getValue
in classSettingBase<Bind>
-
setValue
- Specified by:
setValue
in classSettingBase<Bind>
-
reset
- Specified by:
reset
in classSettingBase<Bind>
-
getBind
public int getBind() -
isButton
public boolean isButton() -
setBind
-
setBind
public void setBind(int bind, boolean isButton) -
toJson
public com.google.gson.JsonObject toJson()- Specified by:
toJson
in interfaceSerializable<Bind>
- Returns:
- The object as a JsonObject
-
fromJson
- Specified by:
fromJson
in interfaceSerializable<Bind>
- Parameters:
object
- The JsonObject to deserialize- Returns:
- The deserialized object
-