public class ModConfig
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
ModConfig.Loading |
static class |
ModConfig.ModConfigEvent |
static class |
ModConfig.Reloading |
static class |
ModConfig.Type |
Modifier and Type | Field and Description |
---|---|
private com.electronwill.nightconfig.core.CommentedConfig |
configData |
private ConfigFileTypeHandler |
configHandler |
private ModContainer |
container |
private java.lang.String |
fileName |
private java.util.concurrent.Callable<java.lang.Void> |
saveHandler |
private ForgeConfigSpec |
spec |
private ModConfig.Type |
type |
Constructor and Description |
---|
ModConfig(ModConfig.Type type,
ForgeConfigSpec spec,
ModContainer activeContainer) |
ModConfig(ModConfig.Type type,
ForgeConfigSpec spec,
ModContainer container,
java.lang.String fileName) |
Modifier and Type | Method and Description |
---|---|
private static java.lang.String |
defaultConfigName(ModConfig.Type type,
java.lang.String modId) |
(package private) void |
fireEvent(ModConfig.ModConfigEvent configEvent) |
com.electronwill.nightconfig.core.CommentedConfig |
getConfigData() |
java.lang.String |
getFileName() |
java.nio.file.Path |
getFullPath() |
ConfigFileTypeHandler |
getHandler() |
java.lang.String |
getModId() |
ForgeConfigSpec |
getSpec() |
ModConfig.Type |
getType() |
void |
save() |
(package private) void |
setConfigData(com.electronwill.nightconfig.core.CommentedConfig configData) |
private final ModConfig.Type type
private final ForgeConfigSpec spec
private final java.lang.String fileName
private final ModContainer container
private final ConfigFileTypeHandler configHandler
private com.electronwill.nightconfig.core.CommentedConfig configData
private java.util.concurrent.Callable<java.lang.Void> saveHandler
public ModConfig(ModConfig.Type type, ForgeConfigSpec spec, ModContainer container, java.lang.String fileName)
public ModConfig(ModConfig.Type type, ForgeConfigSpec spec, ModContainer activeContainer)
private static java.lang.String defaultConfigName(ModConfig.Type type, java.lang.String modId)
public ModConfig.Type getType()
public java.lang.String getFileName()
public ConfigFileTypeHandler getHandler()
public ForgeConfigSpec getSpec()
public java.lang.String getModId()
public com.electronwill.nightconfig.core.CommentedConfig getConfigData()
void setConfigData(com.electronwill.nightconfig.core.CommentedConfig configData)
void fireEvent(ModConfig.ModConfigEvent configEvent)
public void save()
public java.nio.file.Path getFullPath()