|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.minecraftforge.common.Configuration
public class Configuration
This class offers advanced configurations capabilities, allowing to provide various categories for configuration variables.
Nested Class Summary | |
---|---|
static class |
Configuration.UnicodeInputStreamReader
|
Field Summary | |
---|---|
static String |
ALLOWED_CHARS
|
TreeMap<String,Property> |
blockProperties
Deprecated. |
Map<String,Map<String,Property>> |
categories
|
static String |
CATEGORY_BLOCK
|
static String |
CATEGORY_GENERAL
|
static String |
CATEGORY_ITEM
|
static String |
DEFAULT_ENCODING
|
String |
defaultEncoding
|
TreeMap<String,Property> |
generalProperties
Deprecated. |
TreeMap<String,Property> |
itemProperties
Deprecated. |
Constructor Summary | |
---|---|
Configuration(File file)
Create a configuration file for the file given in parameter. |
|
Configuration(File file,
boolean caseSensitiveCustomCategories)
|
Method Summary | |
---|---|
void |
addCustomCategoryComment(String category,
String comment)
|
Property |
get(String category,
String key,
boolean defaultValue)
|
Property |
get(String category,
String key,
int defaultValue)
|
Property |
get(String category,
String key,
String defaultValue)
|
Property |
get(String category,
String key,
String defaultValue,
Property.Type type)
|
Property |
getBlock(String key,
int defaultID)
Gets or create a block id property. |
Property |
getBlock(String category,
String key,
int defaultID)
|
Property |
getItem(String key,
int defaultID)
|
Property |
getItem(String category,
String key,
int defaultID)
|
Property |
getOrCreateBlockIdProperty(String key,
int defaultID)
Deprecated. |
Property |
getOrCreateBooleanProperty(String key,
String category,
boolean defaultValue)
Deprecated. |
Property |
getOrCreateIntProperty(String key,
String category,
int defaultValue)
Deprecated. |
Property |
getOrCreateProperty(String key,
String category,
String defaultValue)
Deprecated. |
boolean |
hasCategory(String category)
|
boolean |
hasKey(String category,
String key)
|
void |
load()
|
void |
save()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String CATEGORY_GENERAL
public static final String CATEGORY_BLOCK
public static final String CATEGORY_ITEM
public static final String ALLOWED_CHARS
public static final String DEFAULT_ENCODING
public Map<String,Map<String,Property>> categories
@Deprecated public TreeMap<String,Property> blockProperties
@Deprecated public TreeMap<String,Property> itemProperties
@Deprecated public TreeMap<String,Property> generalProperties
public String defaultEncoding
Constructor Detail |
---|
public Configuration(File file)
public Configuration(File file, boolean caseSensitiveCustomCategories)
Method Detail |
---|
public Property getBlock(String key, int defaultID)
public Property getBlock(String category, String key, int defaultID)
public Property getItem(String key, int defaultID)
public Property getItem(String category, String key, int defaultID)
public Property get(String category, String key, int defaultValue)
public Property get(String category, String key, boolean defaultValue)
public Property get(String category, String key, String defaultValue)
public Property get(String category, String key, String defaultValue, Property.Type type)
public boolean hasCategory(String category)
public boolean hasKey(String category, String key)
public void load()
public void save()
public void addCustomCategoryComment(String category, String comment)
@Deprecated public Property getOrCreateIntProperty(String key, String category, int defaultValue)
@Deprecated public Property getOrCreateProperty(String key, String category, String defaultValue)
@Deprecated public Property getOrCreateBooleanProperty(String key, String category, boolean defaultValue)
@Deprecated public Property getOrCreateBlockIdProperty(String key, int defaultID)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |