Class NightConfigWrapper
java.lang.Object
net.neoforged.fml.loading.moddiscovery.NightConfigWrapper
- All Implemented Interfaces:
IConfigurable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final com.electronwill.nightconfig.core.UnmodifiableConfig
private IModFileInfo
-
Constructor Summary
ConstructorsConstructorDescriptionNightConfigWrapper
(com.electronwill.nightconfig.core.UnmodifiableConfig config) -
Method Summary
Modifier and TypeMethodDescription<T> Optional
<T> getConfigElement
(String... key) List
<? extends IConfigurable> getConfigList
(String... key) setFile
(IModFileInfo file)
-
Field Details
-
config
private final com.electronwill.nightconfig.core.UnmodifiableConfig config -
file
-
-
Constructor Details
-
NightConfigWrapper
public NightConfigWrapper(com.electronwill.nightconfig.core.UnmodifiableConfig config)
-
-
Method Details
-
setFile
-
getConfigElement
- Specified by:
getConfigElement
in interfaceIConfigurable
-
getConfigList
- Specified by:
getConfigList
in interfaceIConfigurable
-