Package dev.boze.api.setting
Class SettingSlider
- All Implemented Interfaces:
Serializable<Double>
-
Field Summary
Fields inherited from class dev.boze.api.setting.SettingBase
description, name, owner
-
Constructor Summary
ConstructorDescriptionSettingSlider
(ToggleableModule 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
-
SettingSlider
public SettingSlider(ToggleableModule owner, String name, String description, double value, double min, double max, double step)
-
-
Method Details
-
getValue
- Specified by:
getValue
in classSettingBase<Double>
-
setValue
- Specified by:
setValue
in classSettingBase<Double>
-
reset
- Specified by:
reset
in classSettingBase<Double>
-
toJson
public com.google.gson.JsonObject toJson()- Returns:
- The object as a JsonObject
-
fromJson
- Parameters:
object
- The JsonObject to deserialize- Returns:
- The deserialized object
-