public static class ForgeConfigSpec.EnumValue<T extends java.lang.Enum<T>> extends ForgeConfigSpec.ConfigValue<T>
Modifier and Type | Field and Description |
---|---|
private java.lang.Class<T> |
clazz |
private com.electronwill.nightconfig.core.EnumGetMethod |
converter |
Constructor and Description |
---|
EnumValue(ForgeConfigSpec.Builder parent,
java.util.List<java.lang.String> path,
java.util.function.Supplier<T> defaultSupplier,
com.electronwill.nightconfig.core.EnumGetMethod converter,
java.lang.Class<T> clazz) |
Modifier and Type | Method and Description |
---|---|
protected T |
getRaw(com.electronwill.nightconfig.core.Config config,
java.util.List<java.lang.String> path,
java.util.function.Supplier<T> defaultSupplier) |
EnumValue(ForgeConfigSpec.Builder parent, java.util.List<java.lang.String> path, java.util.function.Supplier<T> defaultSupplier, com.electronwill.nightconfig.core.EnumGetMethod converter, java.lang.Class<T> clazz)