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