Package net.minecraftforge.fml.config
Class ConfigFileTypeHandler
java.lang.Object
net.minecraftforge.fml.config.ConfigFileTypeHandler
-
Nested Class Summary
Modifier and TypeClassDescriptionprivate static class
private static class
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final Path
private static final org.apache.logging.log4j.Logger
(package private) static ConfigFileTypeHandler
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
backUpConfig
(com.electronwill.nightconfig.core.file.CommentedFileConfig commentedFileConfig) static void
backUpConfig
(com.electronwill.nightconfig.core.file.CommentedFileConfig commentedFileConfig, int maxBackups) private boolean
setupConfigFile
(ModConfig modConfig, Path file, com.electronwill.nightconfig.core.ConfigFormat<?> conf) void
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
TOML
-
defaultConfigPath
-
-
Constructor Details
-
ConfigFileTypeHandler
public ConfigFileTypeHandler()
-
-
Method Details
-
reader
-
unload
-
setupConfigFile
private boolean setupConfigFile(ModConfig modConfig, Path file, com.electronwill.nightconfig.core.ConfigFormat<?> conf) throws IOException - Throws:
IOException
-
backUpConfig
public static void backUpConfig(com.electronwill.nightconfig.core.file.CommentedFileConfig commentedFileConfig) -
backUpConfig
public static void backUpConfig(com.electronwill.nightconfig.core.file.CommentedFileConfig commentedFileConfig, int maxBackups)
-