Class ForgeConfigSpec.EnumValue<T extends java.lang.Enum<T>>

    • Constructor Summary

      Constructors 
      Constructor 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)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected T getRaw​(com.electronwill.nightconfig.core.Config config, java.util.List<java.lang.String> path, java.util.function.Supplier<T> defaultSupplier)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • converter

        private final com.electronwill.nightconfig.core.EnumGetMethod converter
      • clazz

        private final java.lang.Class<T extends java.lang.Enum<T>> clazz
    • Constructor Detail

      • EnumValue

        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)
    • Method Detail

      • getRaw

        protected T getRaw​(com.electronwill.nightconfig.core.Config config,
                           java.util.List<java.lang.String> path,
                           java.util.function.Supplier<T> defaultSupplier)
        Overrides:
        getRaw in class ForgeConfigSpec.ConfigValue<T extends java.lang.Enum<T>>