Package net.minecraftforge.fml.config
Class ModConfig
java.lang.Object
net.minecraftforge.fml.config.ModConfig
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate com.electronwill.nightconfig.core.CommentedConfig
private final ConfigFileTypeHandler
private final ModContainer
private final String
private final IConfigSpec<?>
private final ModConfig.Type
-
Constructor Summary
ConstructorDescriptionModConfig
(ModConfig.Type type, IConfigSpec<?> spec, ModContainer activeContainer) ModConfig
(ModConfig.Type type, IConfigSpec<?> spec, ModContainer container, String fileName) -
Method Summary
Modifier and TypeMethodDescriptionvoid
acceptSyncedConfig
(byte[] bytes) private static String
defaultConfigName
(ModConfig.Type type, String modId) (package private) void
fireEvent
(IConfigEvent configEvent) com.electronwill.nightconfig.core.CommentedConfig
getModId()
<T extends IConfigSpec<T>>
IConfigSpec<T>getSpec()
getType()
void
save()
(package private) void
setConfigData
(com.electronwill.nightconfig.core.CommentedConfig configData)
-
Field Details
-
type
-
spec
-
fileName
-
container
-
configHandler
-
configData
private com.electronwill.nightconfig.core.CommentedConfig configData -
saveHandler
-
-
Constructor Details
-
ModConfig
-
ModConfig
-
-
Method Details
-
defaultConfigName
-
getType
-
getFileName
-
getHandler
-
getSpec
-
getModId
-
getConfigData
public com.electronwill.nightconfig.core.CommentedConfig getConfigData() -
setConfigData
void setConfigData(com.electronwill.nightconfig.core.CommentedConfig configData) -
fireEvent
-
save
public void save() -
getFullPath
-
acceptSyncedConfig
public void acceptSyncedConfig(byte[] bytes)
-