Class ConfigFileTypeHandler

java.lang.Object
net.minecraftforge.fml.config.ConfigFileTypeHandler

public class ConfigFileTypeHandler extends Object
  • Field Details

    • LOGGER

      private static final org.apache.logging.log4j.Logger LOGGER
    • TOML

      static ConfigFileTypeHandler TOML
    • defaultConfigPath

      private static final Path defaultConfigPath
  • Constructor Details

    • ConfigFileTypeHandler

      public ConfigFileTypeHandler()
  • Method Details

    • reader

      public Function<ModConfig,com.electronwill.nightconfig.core.file.CommentedFileConfig> reader(Path configBasePath)
    • unload

      public void unload(Path configBasePath, ModConfig config)
    • 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)