Package net.minecraftforge.fml.config
Class ConfigTracker
- java.lang.Object
-
- net.minecraftforge.fml.config.ConfigTracker
-
public class ConfigTracker extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static org.apache.logging.log4j.Marker
CONFIG
private java.util.concurrent.ConcurrentHashMap<java.lang.String,java.util.Map<ModConfig.Type,ModConfig>>
configsByMod
private java.util.EnumMap<ModConfig.Type,java.util.Set<ModConfig>>
configSets
private java.util.concurrent.ConcurrentHashMap<java.lang.String,ModConfig>
fileMap
static ConfigTracker
INSTANCE
private static org.apache.logging.log4j.Logger
LOGGER
-
Constructor Summary
Constructors Modifier Constructor Description private
ConfigTracker()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
closeConfig(ModConfig config, java.nio.file.Path configBasePath)
java.lang.String
getConfigFileName(java.lang.String modId, ModConfig.Type type)
void
loadConfigs(ModConfig.Type type, java.nio.file.Path configBasePath)
void
loadDefaultServerConfigs()
private void
openConfig(ModConfig config, java.nio.file.Path configBasePath)
void
receiveSyncedConfig(FMLHandshakeMessages.S2CConfigData s2CConfigData, java.util.function.Supplier<NetworkEvent.Context> contextSupplier)
java.util.List<org.apache.commons.lang3.tuple.Pair<java.lang.String,FMLHandshakeMessages.S2CConfigData>>
syncConfigs(boolean isLocal)
(package private) void
trackConfig(ModConfig config)
void
unloadConfigs(ModConfig.Type type, java.nio.file.Path configBasePath)
-
-
-
Field Detail
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER
-
CONFIG
static final org.apache.logging.log4j.Marker CONFIG
-
INSTANCE
public static final ConfigTracker INSTANCE
-
fileMap
private final java.util.concurrent.ConcurrentHashMap<java.lang.String,ModConfig> fileMap
-
configSets
private final java.util.EnumMap<ModConfig.Type,java.util.Set<ModConfig>> configSets
-
configsByMod
private java.util.concurrent.ConcurrentHashMap<java.lang.String,java.util.Map<ModConfig.Type,ModConfig>> configsByMod
-
-
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)
-
syncConfigs
public java.util.List<org.apache.commons.lang3.tuple.Pair<java.lang.String,FMLHandshakeMessages.S2CConfigData>> syncConfigs(boolean isLocal)
-
openConfig
private void openConfig(ModConfig config, java.nio.file.Path configBasePath)
-
closeConfig
private void closeConfig(ModConfig config, java.nio.file.Path configBasePath)
-
receiveSyncedConfig
public void receiveSyncedConfig(FMLHandshakeMessages.S2CConfigData s2CConfigData, java.util.function.Supplier<NetworkEvent.Context> contextSupplier)
-
loadDefaultServerConfigs
public void loadDefaultServerConfigs()
-
getConfigFileName
public java.lang.String getConfigFileName(java.lang.String modId, ModConfig.Type type)
-
-