Class SettingSlider

java.lang.Object
dev.boze.api.setting.SettingBase<Double>
dev.boze.api.setting.SettingSlider
All Implemented Interfaces:
Serializable<Double>

public class SettingSlider extends SettingBase<Double>
  • 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

      public Double getValue()
      Specified by:
      getValue in class SettingBase<Double>
    • setValue

      public Double setValue(Double newValue)
      Specified by:
      setValue in class SettingBase<Double>
    • reset

      public Double reset()
      Specified by:
      reset in class SettingBase<Double>
    • toJson

      public com.google.gson.JsonObject toJson()
      Returns:
      The object as a JsonObject
    • fromJson

      public Double fromJson(com.google.gson.JsonObject object)
      Parameters:
      object - The JsonObject to deserialize
      Returns:
      The deserialized object