Class NightConfigWrapper

java.lang.Object
net.minecraftforge.fml.loading.moddiscovery.NightConfigWrapper
All Implemented Interfaces:
net.minecraftforge.forgespi.language.IConfigurable

public class NightConfigWrapper extends Object implements net.minecraftforge.forgespi.language.IConfigurable
  • Field Details

    • config

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

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

    • NightConfigWrapper

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

    • setFile

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

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

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