Package dev.boze.api.option
Class SliderOption
- All Implemented Interfaces:
Serializable<Double>
-
Field Summary
FieldsFields inherited from class dev.boze.api.option.Option
description, name, owner
-
Constructor Summary
ConstructorsConstructorDescriptionSliderOption
(AddonModule owner, String name, String description, double value, double min, double max, double step) -
Method Summary
-
Field Details
-
min
public final double min -
max
public final double max -
step
public final double step
-
-
Constructor Details
-
SliderOption
public SliderOption(AddonModule owner, String name, String description, double value, double min, double max, double step)
-
-
Method Details
-
getValue
-
setValue
-
reset
-
toJson
public com.google.gson.JsonObject toJson()- Returns:
- The object as a JsonObject
-
fromJson
- Parameters:
object
- The JsonObject to deserialize- Returns:
- The deserialized object
-