public enum ConfigHandler extends java.lang.Enum<ConfigHandler>
| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
net.minecraftforge.common.config.Configuration |
getConfigForID(java.lang.String modid) |
java.lang.Object |
getObjectForID(java.lang.String modid)
Deprecated.
|
<T> T |
getObjectForID(java.lang.String modid,
java.lang.Class<T> type) |
boolean |
hasConfigForID(java.lang.String modid) |
void |
injectConfig(cpw.mods.fml.common.ModContainer mod,
cpw.mods.fml.common.discovery.ASMDataTable data) |
void |
loadConfigForID(java.lang.String modid)
Loads the config file for the mod.
|
<T> void |
registerEntryAdapter(java.lang.Class<T> type,
IEntryAdapter<T> entryAdapter)
Register an entry adapter.
|
void |
saveConfigForID(java.lang.String modid)
Saves the config file for the mod.
|
static ConfigHandler |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ConfigHandler[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ConfigHandler INSTANCE
public static ConfigHandler[] values()
for (ConfigHandler c : ConfigHandler.values()) System.out.println(c);
public static ConfigHandler valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic <T> void registerEntryAdapter(java.lang.Class<T> type,
IEntryAdapter<T> entryAdapter)
T - the entry typetype - the class to handleentryAdapter - the adapterpublic boolean hasConfigForID(java.lang.String modid)
modid - the mod idpublic net.minecraftforge.common.config.Configuration getConfigForID(java.lang.String modid)
modid - the mod idConfiguration instance of the mod, null if none can be found@Deprecated public java.lang.Object getObjectForID(java.lang.String modid)
modid - the mod idpublic <T> T getObjectForID(java.lang.String modid,
java.lang.Class<T> type)
modid - the mod idtype - the config typepublic void saveConfigForID(java.lang.String modid)
modid - the mod idpublic void loadConfigForID(java.lang.String modid)
modid - the mod idpublic void injectConfig(cpw.mods.fml.common.ModContainer mod,
cpw.mods.fml.common.discovery.ASMDataTable data)