public class ConfigHandler extends java.util.LinkedHashSet<ExtendedConfig>
| Modifier and Type | Class and Description |
|---|---|
static class |
ConfigHandler.ConfigInitListener
Init listener for configs.
|
| Constructor and Description |
|---|
ConfigHandler() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(ExtendedConfig e) |
net.minecraftforge.common.config.Configuration |
getConfig() |
java.util.Map<java.lang.String,ExtendedConfig> |
getDictionary()
Get the map of config nameid to config.
|
static ConfigHandler |
getInstance()
Get the unique instance.
|
void |
handle(cpw.mods.fml.common.event.FMLPreInitializationEvent event)
Iterate over the given ExtendedConfigs to read/write the config and register the given elements
This also sets the config of this instance.
|
void |
loadConfig()
Iterate over the given ExtendedConfigs to read/write the config and register the given elements.
|
void |
setConfig(net.minecraftforge.common.config.Configuration config) |
void |
syncProcessedConfigs()
Sync the config values that were already loaded.
|
clear, clone, contains, isEmpty, iterator, remove, sizeaddAll, containsAll, retainAll, toArray, toArray, toStringpublic static ConfigHandler getInstance()
public boolean add(ExtendedConfig e)
add in interface java.util.Collection<ExtendedConfig>add in interface java.util.Set<ExtendedConfig>add in class java.util.HashSet<ExtendedConfig>public void handle(cpw.mods.fml.common.event.FMLPreInitializationEvent event)
event - the event from the init methodspublic void loadConfig()
public void syncProcessedConfigs()
public net.minecraftforge.common.config.Configuration getConfig()
public void setConfig(net.minecraftforge.common.config.Configuration config)
config - the config to setpublic java.util.Map<java.lang.String,ExtendedConfig> getDictionary()