Interface IConfigEntry<T>


public interface IConfigEntry<T>
Use for making the config variables
  • Method Details

    • getDefaultValue

      T getDefaultValue()
      Gets the default value of the option
    • setApiValue

      void setApiValue(T newApiValue)
    • getApiValue

      T getApiValue()
    • getAllowApiOverride

      boolean getAllowApiOverride()
      Returns true if this config can be set via the API.
    • set

      void set(T newValue)
    • get

      T get()
    • getTrueValue

      T getTrueValue()
    • setWithoutSaving

      void setWithoutSaving(T newValue)
      Sets the value without saving
    • getMin

      T getMin()
      Gets the min value
    • setMin

      void setMin(T newMin)
      Sets the min value
    • getMax

      T getMax()
      Gets the max value
    • setMax

      void setMax(T newMax)
      Sets the max value
    • setMinMax

      void setMinMax(T newMin, T newMax)
      Sets the min and max in 1 setter
    • getComment

      String getComment()
      Gets the comment
    • setComment

      void setComment(String newComment)
      Sets the comment
    • isValid

      byte isValid()
      Checks if the option is valid 0 == valid 2 == invalid 1 == number too high -1 == number too low
    • isValid

      byte isValid(T value)
      Checks if a value is valid
    • equals

      boolean equals(IConfigEntry<?> obj)
      Is the value of this equal to another
    • addValueChangeListener

      void addValueChangeListener(Consumer<T> onValueChangeFunc)