Package dev.boze.api.option
Class BindOption
- All Implemented Interfaces:
Serializable<Bind>
-
Field Summary
Fields inherited from class dev.boze.api.option.Option
description, name, owner
-
Constructor Summary
ConstructorsConstructorDescriptionBindOption
(AddonModule owner, String name, String description) BindOption
(AddonModule owner, String name, String description, int bind, boolean isButton) -
Method Summary
-
Constructor Details
-
BindOption
-
BindOption
-
-
Method Details
-
getValue
-
setValue
-
reset
-
getBind
public int getBind() -
isButton
public boolean isButton() -
setBind
-
setBind
public void setBind(int bind, boolean isButton) -
toJson
public com.google.gson.JsonObject toJson()- Returns:
- The object as a JsonObject
-
fromJson
- Parameters:
object
- The JsonObject to deserialize- Returns:
- The deserialized object
-