Class NightConfigWrapper

  • All Implemented Interfaces:
    net.minecraftforge.forgespi.language.IConfigurable

    public class NightConfigWrapper
    extends java.lang.Object
    implements net.minecraftforge.forgespi.language.IConfigurable
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private com.electronwill.nightconfig.core.UnmodifiableConfig config  
      private net.minecraftforge.forgespi.language.IModFileInfo file  
    • Constructor Summary

      Constructors 
      Constructor Description
      NightConfigWrapper​(com.electronwill.nightconfig.core.UnmodifiableConfig config)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      <T> java.util.Optional<T> getConfigElement​(java.lang.String... key)  
      java.util.List<? extends net.minecraftforge.forgespi.language.IConfigurable> getConfigList​(java.lang.String... key)  
      (package private) NightConfigWrapper setFile​(net.minecraftforge.forgespi.language.IModFileInfo file)  
      • Methods inherited from class java.lang.Object

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

      • config

        private final com.electronwill.nightconfig.core.UnmodifiableConfig config
      • file

        private net.minecraftforge.forgespi.language.IModFileInfo file
    • Constructor Detail

      • NightConfigWrapper

        public NightConfigWrapper​(com.electronwill.nightconfig.core.UnmodifiableConfig config)
    • Method Detail

      • setFile

        NightConfigWrapper setFile​(net.minecraftforge.forgespi.language.IModFileInfo file)
      • getConfigElement

        public <T> java.util.Optional<T> getConfigElement​(java.lang.String... key)
        Specified by:
        getConfigElement in interface net.minecraftforge.forgespi.language.IConfigurable
      • getConfigList

        public java.util.List<? extends net.minecraftforge.forgespi.language.IConfigurable> getConfigList​(java.lang.String... key)
        Specified by:
        getConfigList in interface net.minecraftforge.forgespi.language.IConfigurable