@Deprecated public enum ConfigHandler extends java.lang.Enum<ConfigHandler>
| Enum Constant and Description |
|---|
INSTANCE
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
net.minecraftforge.common.config.Configuration |
getConfigForID(java.lang.String modid)
Deprecated.
|
java.lang.Object |
getObjectForID(java.lang.String modid)
Deprecated.
|
<T> T |
getObjectForID(java.lang.String modid,
java.lang.Class<T> type)
Deprecated.
|
boolean |
hasConfigForID(java.lang.String modid)
Deprecated.
|
void |
injectConfig(net.minecraftforge.fml.common.ModContainer mod,
net.minecraftforge.fml.common.discovery.ASMDataTable data)
Deprecated.
|
void |
loadConfigForID(java.lang.String modid)
Deprecated.
Loads the config file for the mod.
|
<T> void |
registerEntryPropertyClass(java.lang.Class<T> type,
java.lang.Class<EntryProperty> entryAdapter)
Deprecated.
Register an entry property class.
|
void |
saveConfigForID(java.lang.String modid)
Deprecated.
Saves the config file for the mod.
|
static ConfigHandler |
valueOf(java.lang.String name)
Deprecated.
Returns the enum constant of this type with the specified name.
|
static ConfigHandler[] |
values()
Deprecated.
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 registerEntryPropertyClass(java.lang.Class<T> type,
java.lang.Class<EntryProperty> entryAdapter)
T - the entry typetype - the class to handleentryAdapter - the property classpublic 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(net.minecraftforge.fml.common.ModContainer mod,
net.minecraftforge.fml.common.discovery.ASMDataTable data)