Class ForgeConfigSpec.ConfigValue<T>

    • Field Detail

      • USE_CACHES

        static boolean USE_CACHES
      • path

        private final java.util.List<java.lang.String> path
      • defaultSupplier

        private final java.util.function.Supplier<T> defaultSupplier
      • cachedValue

        private T cachedValue
    • Constructor Detail

      • ConfigValue

        ConfigValue​(ForgeConfigSpec.Builder parent,
                    java.util.List<java.lang.String> path,
                    java.util.function.Supplier<T> defaultSupplier)
    • Method Detail

      • getPath

        public java.util.List<java.lang.String> getPath()
      • get

        public T get()
      • getRaw

        protected T getRaw​(com.electronwill.nightconfig.core.Config config,
                           java.util.List<java.lang.String> path,
                           java.util.function.Supplier<T> defaultSupplier)
      • save

        public void save()
      • set

        public void set​(T value)
      • clearCache

        public void clearCache()