Class ListConfigOption<T>
java.lang.Object
com.binaris.wizardry.core.config.option.ConfigOption<List<T>>
com.binaris.wizardry.core.config.option.ListConfigOption<T>
-
Field Summary
Fields inherited from class com.binaris.wizardry.core.config.option.ConfigOption
translationDescriptionKey, translationNameKey -
Constructor Summary
ConstructorsConstructorDescriptionListConfigOption(String key, List<T> defaultValue, com.mojang.serialization.Codec<T> elementCodec) -
Method Summary
Modifier and TypeMethodDescriptionstatic <E> ListConfigOption<E>static ListConfigOption<net.minecraft.resources.ResourceLocation>resourceLocation(String key, List<net.minecraft.resources.ResourceLocation> defaultValue) Methods inherited from class com.binaris.wizardry.core.config.option.ConfigOption
get, getCodec, getDefault, getKey, getRawDescription, getRawName, getType, set
-
Constructor Details
-
ListConfigOption
-
-
Method Details
-
validate
- Specified by:
validatein classConfigOption<List<T>>
-
of
public static <E> ListConfigOption<E> of(String key, List<E> defaultValue, com.mojang.serialization.Codec<E> elementCodec) -
resourceLocation
public static ListConfigOption<net.minecraft.resources.ResourceLocation> resourceLocation(String key, List<net.minecraft.resources.ResourceLocation> defaultValue)
-