Package net.minecraftforge.fml.config
Class ModConfig
- java.lang.Object
-
- net.minecraftforge.fml.config.ModConfig
-
public class ModConfig extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ModConfig.Loading
static class
ModConfig.ModConfigEvent
static class
ModConfig.Reloading
static class
ModConfig.Type
-
Field Summary
Fields Modifier and Type Field 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 Summary
Constructors Constructor Description ModConfig(ModConfig.Type type, ForgeConfigSpec spec, ModContainer activeContainer)
ModConfig(ModConfig.Type type, ForgeConfigSpec spec, ModContainer container, java.lang.String fileName)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Field Detail
-
type
private final ModConfig.Type type
-
spec
private final ForgeConfigSpec spec
-
fileName
private final java.lang.String fileName
-
container
private final ModContainer container
-
configHandler
private final ConfigFileTypeHandler configHandler
-
configData
private com.electronwill.nightconfig.core.CommentedConfig configData
-
saveHandler
private java.util.concurrent.Callable<java.lang.Void> saveHandler
-
-
Constructor Detail
-
ModConfig
public ModConfig(ModConfig.Type type, ForgeConfigSpec spec, ModContainer container, java.lang.String fileName)
-
ModConfig
public ModConfig(ModConfig.Type type, ForgeConfigSpec spec, ModContainer activeContainer)
-
-
Method Detail
-
defaultConfigName
private static java.lang.String defaultConfigName(ModConfig.Type type, java.lang.String modId)
-
getType
public ModConfig.Type getType()
-
getFileName
public java.lang.String getFileName()
-
getHandler
public ConfigFileTypeHandler getHandler()
-
getSpec
public ForgeConfigSpec getSpec()
-
getModId
public java.lang.String getModId()
-
getConfigData
public com.electronwill.nightconfig.core.CommentedConfig getConfigData()
-
setConfigData
void setConfigData(com.electronwill.nightconfig.core.CommentedConfig configData)
-
fireEvent
void fireEvent(ModConfig.ModConfigEvent configEvent)
-
save
public void save()
-
getFullPath
public java.nio.file.Path getFullPath()
-
-