Class Option<T>

java.lang.Object
ch.njol.skript.config.Option<T>

public class Option<T> extends Object
  • Field Details

    • key

      public final String key
  • Constructor Details

    • Option

      public Option(String key, T defaultValue)
    • Option

      public Option(String key, T defaultValue, Converter<String,​? extends T> parser)
  • Method Details

    • setter

      public final Option<T> setter(Setter<? super T> setter)
    • optional

      public final Option<T> optional(boolean optional)
    • set

      public final void set(Config config, String path)
    • onValueChange

      protected void onValueChange()
    • value

      public final T value()
    • isOptional

      public final boolean isOptional()