Package net.minecraftforge.fml.config
Class ConfigTracker
java.lang.Object
net.minecraftforge.fml.config.ConfigTracker
-
Field Summary
Modifier and TypeFieldDescription(package private) static final org.apache.logging.log4j.Marker
private ConcurrentHashMap<String,
Map<ModConfig.Type, ModConfig>> private final EnumMap<ModConfig.Type,
Set<ModConfig>> private final ConcurrentHashMap<String,
ModConfig> static final ConfigTracker
private static final org.apache.logging.log4j.Logger
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
closeConfig
(ModConfig config, Path configBasePath) getConfigFileName
(String modId, ModConfig.Type type) void
loadConfigs
(ModConfig.Type type, Path configBasePath) void
private void
openConfig
(ModConfig config, Path configBasePath) void
receiveSyncedConfig
(FMLHandshakeMessages.S2CConfigData s2CConfigData, Supplier<NetworkEvent.Context> contextSupplier) List<org.apache.commons.lang3.tuple.Pair<String,
FMLHandshakeMessages.S2CConfigData>> syncConfigs
(boolean isLocal) (package private) void
trackConfig
(ModConfig config) void
unloadConfigs
(ModConfig.Type type, Path configBasePath)
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
CONFIG
static final org.apache.logging.log4j.Marker CONFIG -
INSTANCE
-
fileMap
-
configSets
-
configsByMod
-
-
Constructor Details
-
ConfigTracker
private ConfigTracker()
-
-
Method Details
-
trackConfig
-
loadConfigs
-
unloadConfigs
-
syncConfigs
public List<org.apache.commons.lang3.tuple.Pair<String,FMLHandshakeMessages.S2CConfigData>> syncConfigs(boolean isLocal) -
openConfig
-
closeConfig
-
receiveSyncedConfig
public void receiveSyncedConfig(FMLHandshakeMessages.S2CConfigData s2CConfigData, Supplier<NetworkEvent.Context> contextSupplier) -
loadDefaultServerConfigs
public void loadDefaultServerConfigs() -
getConfigFileName
-