Class ConfigProperty<T>

java.lang.Object
net.lynxclient.api.config.ConfigProperty<T>

public final class ConfigProperty<T> extends Object
One setting value. Declared as a field of a ModuleConfig together with a setting annotation (Switch, Slider, …); LynxClient saves it and shows it in the mod menu automatically.
  • Method Details

    • of

      public static <T> ConfigProperty<T> of(T defaultValue)
    • get

      public T get()
    • set

      public void set(T newValue)
    • defaultValue

      public T defaultValue()
    • reset

      public void reset()
    • onChange

      public ConfigProperty<T> onChange(Consumer<T> listener)
      Called after every change (from the menu, a server rule or code).