public class ConfigFileTypeHandler
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
private static class |
ConfigFileTypeHandler.ConfigWatcher |
Modifier and Type | Field and Description |
---|---|
private static java.nio.file.Path |
defaultConfigPath |
private static org.apache.logging.log4j.Logger |
LOGGER |
(package private) static ConfigFileTypeHandler |
TOML |
Constructor and Description |
---|
ConfigFileTypeHandler() |
Modifier and Type | Method and Description |
---|---|
java.util.function.Function<ModConfig,com.electronwill.nightconfig.core.file.CommentedFileConfig> |
reader(java.nio.file.Path configBasePath) |
private boolean |
setupConfigFile(ModConfig modConfig,
java.nio.file.Path file,
com.electronwill.nightconfig.core.ConfigFormat<?> conf) |
void |
unload(java.nio.file.Path configBasePath,
ModConfig config) |
private static final org.apache.logging.log4j.Logger LOGGER
static ConfigFileTypeHandler TOML
private static final java.nio.file.Path defaultConfigPath
public java.util.function.Function<ModConfig,com.electronwill.nightconfig.core.file.CommentedFileConfig> reader(java.nio.file.Path configBasePath)
public void unload(java.nio.file.Path configBasePath, ModConfig config)
private boolean setupConfigFile(ModConfig modConfig, java.nio.file.Path file, com.electronwill.nightconfig.core.ConfigFormat<?> conf) throws java.io.IOException
java.io.IOException