Class ConfigTracker


  • public class ConfigTracker
    extends java.lang.Object
    • Field Detail

      • LOGGER

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

        static final org.apache.logging.log4j.Marker CONFIG
      • fileMap

        private final java.util.concurrent.ConcurrentHashMap<java.lang.String,​ModConfig> fileMap
      • configsByMod

        private java.util.concurrent.ConcurrentHashMap<java.lang.String,​java.util.Map<ModConfig.Type,​ModConfig>> configsByMod
    • Constructor Detail

      • ConfigTracker

        private ConfigTracker()
    • Method Detail

      • trackConfig

        void trackConfig​(ModConfig config)
      • loadConfigs

        public void loadConfigs​(ModConfig.Type type,
                                java.nio.file.Path configBasePath)
      • unloadConfigs

        public void unloadConfigs​(ModConfig.Type type,
                                  java.nio.file.Path configBasePath)
      • openConfig

        private void openConfig​(ModConfig config,
                                java.nio.file.Path configBasePath)
      • closeConfig

        private void closeConfig​(ModConfig config,
                                 java.nio.file.Path configBasePath)
      • loadDefaultServerConfigs

        public void loadDefaultServerConfigs()
      • getConfigFileName

        public java.lang.String getConfigFileName​(java.lang.String modId,
                                                  ModConfig.Type type)