Class ConfigOption<T>
java.lang.Object
com.binaris.wizardry.core.config.option.ConfigOption<T>
- Type Parameters:
T- The type of the configuration option.
- Direct Known Subclasses:
BoolConfigOption,ListConfigOption,NumberConfigOption,ResourceLocationConfigOption
A class representing a single configuration option. It holds the key, default value,
current value, codec for serialization, and type of the option.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConfigOption(String key, T defaultValue, com.mojang.serialization.Codec<T> codec) ConfigOption(String key, T defaultValue, com.mojang.serialization.Codec<T> codec, ConfigOptionType type) -
Method Summary
-
Field Details
-
translationNameKey
-
translationDescriptionKey
-
-
Constructor Details
-
ConfigOption
public ConfigOption(String key, T defaultValue, com.mojang.serialization.Codec<T> codec, ConfigOptionType type) -
ConfigOption
-
-
Method Details
-
validate
-
get
-
set
-
getKey
-
getCodec
-
getDefault
-
getType
-
getRawDescription
-
getRawName
-