public class NightConfigWrapper
extends java.lang.Object
implements net.minecraftforge.forgespi.language.IConfigurable
Modifier and Type | Field and Description |
---|---|
private com.electronwill.nightconfig.core.UnmodifiableConfig |
config |
private net.minecraftforge.forgespi.language.IModFileInfo |
file |
Constructor and Description |
---|
NightConfigWrapper(com.electronwill.nightconfig.core.UnmodifiableConfig config) |
Modifier and Type | Method and 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) |
private final com.electronwill.nightconfig.core.UnmodifiableConfig config
private net.minecraftforge.forgespi.language.IModFileInfo file
public NightConfigWrapper(com.electronwill.nightconfig.core.UnmodifiableConfig config)
NightConfigWrapper setFile(net.minecraftforge.forgespi.language.IModFileInfo file)
public <T> java.util.Optional<T> getConfigElement(java.lang.String... key)
getConfigElement
in interface net.minecraftforge.forgespi.language.IConfigurable
public java.util.List<? extends net.minecraftforge.forgespi.language.IConfigurable> getConfigList(java.lang.String... key)
getConfigList
in interface net.minecraftforge.forgespi.language.IConfigurable