Class ConfigOption<T>

java.lang.Object
com.binaris.wizardry.core.config.ConfigOption<T>
Type Parameters:
T - The type of the configuration option.

public class ConfigOption<T> extends Object
A class representing a single configuration option. It holds the key, default value, current value, and a codec for serialization.
  • Constructor Details

    • ConfigOption

      public ConfigOption(String key, T defaultValue, com.mojang.serialization.Codec<T> codec)
  • Method Details

    • get

      public T get()
    • set

      public void set(T value)
    • getKey

      public String getKey()
    • getCodec

      public com.mojang.serialization.Codec<T> getCodec()
    • getDefault

      public T getDefault()