Package zombie.config

Class DoubleConfigOption

java.lang.Object
zombie.config.ConfigOption
zombie.config.DoubleConfigOption
Direct Known Subclasses:
SandboxOptions.DoubleSandboxOption, ServerOptions.DoubleServerOption

public class DoubleConfigOption
extends ConfigOption
  • Field Details

    • value

      protected double value
    • defaultValue

      protected double defaultValue
    • min

      protected double min
    • max

      protected double max
  • Constructor Details

    • DoubleConfigOption

      public DoubleConfigOption​(java.lang.String string, double double1, double double2, double double3)
  • Method Details

    • getType

      public java.lang.String getType()
      Specified by:
      getType in class ConfigOption
    • getMin

      public double getMin()
    • getMax

      public double getMax()
    • resetToDefault

      public void resetToDefault()
      Specified by:
      resetToDefault in class ConfigOption
    • setDefaultToCurrentValue

      public void setDefaultToCurrentValue()
      Specified by:
      setDefaultToCurrentValue in class ConfigOption
    • parse

      public void parse​(java.lang.String string)
      Specified by:
      parse in class ConfigOption
    • getValueAsString

      public java.lang.String getValueAsString()
      Specified by:
      getValueAsString in class ConfigOption
    • setValueFromObject

      public void setValueFromObject​(java.lang.Object object)
      Specified by:
      setValueFromObject in class ConfigOption
    • getValueAsObject

      public java.lang.Object getValueAsObject()
      Specified by:
      getValueAsObject in class ConfigOption
    • isValidString

      public boolean isValidString​(java.lang.String string)
      Specified by:
      isValidString in class ConfigOption
    • setValue

      public void setValue​(double double1)
    • getValue

      public double getValue()
    • getDefaultValue

      public double getDefaultValue()