net.minecraft.src.forge
Class Configuration
java.lang.Object
net.minecraft.src.forge.Configuration
public class Configuration
- extends java.lang.Object
This class offers advanced configurations capabilities, allowing to provide
various categories for configuration variables.
|
Constructor Summary |
Configuration(java.io.File file)
Create a configuration file for the file given in parameter. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
blockProperties
public java.util.TreeMap<java.lang.String,Configuration.Property> blockProperties
itemProperties
public java.util.TreeMap<java.lang.String,Configuration.Property> itemProperties
generalProperties
public java.util.TreeMap<java.lang.String,Configuration.Property> generalProperties
Configuration
public Configuration(java.io.File file)
- Create a configuration file for the file given in parameter.
getOrCreateBlockIdProperty
public Configuration.Property getOrCreateBlockIdProperty(java.lang.String key,
int defaultId)
- Gets or create a block id property. If the block id property key is
already in the configuration, then it will be used. Otherwise,
defaultId will be used, except if already taken, in which case this
will try to determine a free default id.
getOrCreateIntProperty
public Configuration.Property getOrCreateIntProperty(java.lang.String key,
Configuration.PropertyKind kind,
int defaultValue)
getOrCreateBooleanProperty
public Configuration.Property getOrCreateBooleanProperty(java.lang.String key,
Configuration.PropertyKind kind,
boolean defaultValue)
getOrCreateProperty
public Configuration.Property getOrCreateProperty(java.lang.String key,
Configuration.PropertyKind kind,
java.lang.String defaultValue)
load
public void load()
save
public void save()