public class WawlaConfiguration
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
WawlaConfiguration.Adapter<T> |
| Modifier and Type | Field and Description |
|---|---|
static java.util.Map<java.lang.Class<?>,WawlaConfiguration.Adapter> |
handlers
A map of adapters.
|
| Constructor and Description |
|---|
WawlaConfiguration(java.lang.String name)
Base constructor for a configuration handler.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> void |
addReader(java.lang.Class<T> type,
WawlaConfiguration.Adapter<T> reader) |
net.minecraftforge.common.config.Configuration |
getConfig() |
boolean |
hasChanged() |
void |
init(java.util.List<java.lang.Class<?>> providerClasses)
Initializes the ConfigurationHandler.
|
void |
onConfigChanged(net.minecraftforge.fml.client.event.ConfigChangedEvent event) |
void |
save() |
void |
sync()
Syncs the config file.
|
public static final java.util.Map<java.lang.Class<?>,WawlaConfiguration.Adapter> handlers
public WawlaConfiguration(java.lang.String name)
name - The name of the config file to represent. This should be all lower case and
have no spaces. Basic file name rules. The .cfg extension and forge config
directory is added automatically.public void init(java.util.List<java.lang.Class<?>> providerClasses)
table - The ASMDataTable. You can get this from your fml construction events.public void sync()
public void onConfigChanged(net.minecraftforge.fml.client.event.ConfigChangedEvent event)
public boolean hasChanged()
public void save()
public net.minecraftforge.common.config.Configuration getConfig()
public static <T> void addReader(java.lang.Class<T> type,
WawlaConfiguration.Adapter<T> reader)