public class Configuration
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Configuration.UnicodeInputStreamReader |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ALLOWED_CHARS |
static com.google.common.base.CharMatcher |
allowedProperties |
static java.lang.String |
CATEGORY_CLIENT |
static java.lang.String |
CATEGORY_GENERAL |
static java.lang.String |
CATEGORY_SPLITTER |
static java.lang.String |
COMMENT_SEPARATOR |
static java.lang.String |
DEFAULT_ENCODING |
java.lang.String |
defaultEncoding |
boolean |
isChild |
static java.lang.String |
NEW_LINE |
Constructor and Description |
---|
Configuration() |
Configuration(java.io.File file)
Create a configuration file for the file given in parameter.
|
Configuration(java.io.File file,
boolean caseSensitiveCustomCategories) |
Configuration(java.io.File file,
java.lang.String configVersion)
Create a configuration file for the file given in parameter with the provided config version number.
|
Configuration(java.io.File file,
java.lang.String configVersion,
boolean caseSensitiveCustomCategories) |
Modifier and Type | Method and Description |
---|---|
void |
addCustomCategoryComment(java.lang.String category,
java.lang.String comment) |
void |
copyCategoryProps(Configuration fromConfig,
java.lang.String[] ctgys)
Copies property objects from another Configuration object to this one using the list of category names.
|
static void |
enableGlobalConfig() |
Property |
get(java.lang.String category,
java.lang.String key,
boolean defaultValue)
Gets a boolean Property object without a comment using the default settings.
|
Property |
get(java.lang.String category,
java.lang.String key,
boolean[] defaultValues)
Gets a boolean array Property without a comment using the default settings.
|
Property |
get(java.lang.String category,
java.lang.String key,
boolean[] defaultValues,
java.lang.String comment)
Gets a boolean array Property with a comment using the default settings.
|
Property |
get(java.lang.String category,
java.lang.String key,
boolean[] defaultValues,
java.lang.String comment,
boolean isListLengthFixed,
int maxListLength)
Gets a boolean array Property with all settings defined.
|
Property |
get(java.lang.String category,
java.lang.String key,
boolean defaultValue,
java.lang.String comment)
Gets a boolean Property object with a comment using the default settings.
|
Property |
get(java.lang.String category,
java.lang.String key,
double defaultValue)
Gets a double Property object without a comment using default settings.
|
Property |
get(java.lang.String category,
java.lang.String key,
double[] defaultValues)
Gets a double array Property object without a comment using default settings.
|
Property |
get(java.lang.String category,
java.lang.String key,
double[] defaultValues,
java.lang.String comment)
Gets a double array Property object without a comment using default settings.
|
Property |
get(java.lang.String category,
java.lang.String key,
double[] defaultValues,
java.lang.String comment,
double minValue,
double maxValue)
Gets a double array Property object with the defined comment, minimum and maximum bounds.
|
Property |
get(java.lang.String category,
java.lang.String key,
double[] defaultValues,
java.lang.String comment,
double minValue,
double maxValue,
boolean isListLengthFixed,
int maxListLength)
Gets a double array Property object with all settings defined.
|
Property |
get(java.lang.String category,
java.lang.String key,
double defaultValue,
java.lang.String comment)
Gets a double Property object with a comment using default settings.
|
Property |
get(java.lang.String category,
java.lang.String key,
double defaultValue,
java.lang.String comment,
double minValue,
double maxValue)
Gets a double Property object with the defined comment, minimum and maximum bounds
|
Property |
get(java.lang.String category,
java.lang.String key,
int defaultValue)
Gets an integer Property object without a comment using default settings.
|
Property |
get(java.lang.String category,
java.lang.String key,
int[] defaultValues)
Gets an integer array Property object without a comment using default settings.
|
Property |
get(java.lang.String category,
java.lang.String key,
int[] defaultValues,
java.lang.String comment)
Gets an integer array Property object with a comment using default settings.
|
Property |
get(java.lang.String category,
java.lang.String key,
int[] defaultValues,
java.lang.String comment,
int minValue,
int maxValue)
Gets an integer array Property object with the defined comment, minimum and maximum bounds.
|
Property |
get(java.lang.String category,
java.lang.String key,
int[] defaultValues,
java.lang.String comment,
int minValue,
int maxValue,
boolean isListLengthFixed,
int maxListLength)
Gets an integer array Property object with all settings defined.
|
Property |
get(java.lang.String category,
java.lang.String key,
int defaultValue,
java.lang.String comment)
Gets an integer Property object with a comment using default settings.
|
Property |
get(java.lang.String category,
java.lang.String key,
int defaultValue,
java.lang.String comment,
int minValue,
int maxValue)
Gets an integer Property object with the defined comment, minimum and maximum bounds.
|
Property |
get(java.lang.String category,
java.lang.String key,
java.lang.String defaultValue)
Gets a string Property without a comment using the default settings.
|
Property |
get(java.lang.String category,
java.lang.String key,
java.lang.String[] defaultValues)
Gets a string array Property without a comment using the default settings.
|
Property |
get(java.lang.String category,
java.lang.String key,
java.lang.String[] defaultValues,
java.lang.String comment)
Gets a string array Property with a comment using the default settings.
|
Property |
get(java.lang.String category,
java.lang.String key,
java.lang.String[] defaultValues,
java.lang.String comment,
boolean isListLengthFixed,
int maxListLength,
java.util.regex.Pattern validationPattern)
Gets a string array Property with a comment with all settings defined.
|
Property |
get(java.lang.String category,
java.lang.String key,
java.lang.String[] defaultValues,
java.lang.String comment,
java.util.regex.Pattern validationPattern)
Gets a string array Property with a comment using the defined validationPattern and otherwise default settings.
|
Property |
get(java.lang.String category,
java.lang.String key,
java.lang.String[] defaultValues,
java.lang.String comment,
Property.Type type)
Gets a list (array) Property object of the specified type using default settings.
|
Property |
get(java.lang.String category,
java.lang.String key,
java.lang.String defaultValue,
java.lang.String comment)
Gets a string Property with a comment using the default settings.
|
Property |
get(java.lang.String category,
java.lang.String key,
java.lang.String defaultValue,
java.lang.String comment,
java.util.regex.Pattern validationPattern)
Gets a string Property with a comment using the defined validationPattern and otherwise default settings.
|
Property |
get(java.lang.String category,
java.lang.String key,
java.lang.String defaultValue,
java.lang.String comment,
Property.Type type)
Gets a Property object of the specified type using default settings.
|
Property |
get(java.lang.String category,
java.lang.String key,
java.lang.String defaultValue,
java.lang.String comment,
java.lang.String[] validValues)
Gets a string Property with a comment using the defined validValues array and otherwise default settings.
|
boolean |
getBoolean(java.lang.String name,
java.lang.String category,
boolean defaultValue,
java.lang.String comment)
Creates a boolean property.
|
boolean |
getBoolean(java.lang.String name,
java.lang.String category,
boolean defaultValue,
java.lang.String comment,
java.lang.String langKey)
Creates a boolean property.
|
ConfigCategory |
getCategory(java.lang.String category) |
java.util.Set<java.lang.String> |
getCategoryNames() |
java.io.File |
getConfigFile() |
java.lang.String |
getDefinedConfigVersion() |
float |
getFloat(java.lang.String name,
java.lang.String category,
float defaultValue,
float minValue,
float maxValue,
java.lang.String comment)
Creates a float property.
|
float |
getFloat(java.lang.String name,
java.lang.String category,
float defaultValue,
float minValue,
float maxValue,
java.lang.String comment,
java.lang.String langKey)
Creates a float property.
|
int |
getInt(java.lang.String name,
java.lang.String category,
int defaultValue,
int minValue,
int maxValue,
java.lang.String comment)
Creates a integer property.
|
int |
getInt(java.lang.String name,
java.lang.String category,
int defaultValue,
int minValue,
int maxValue,
java.lang.String comment,
java.lang.String langKey)
Creates a integer property.
|
java.lang.String |
getLoadedConfigVersion() |
java.lang.String |
getString(java.lang.String name,
java.lang.String category,
java.lang.String defaultValue,
java.lang.String comment)
Creates a string property.
|
java.lang.String |
getString(java.lang.String name,
java.lang.String category,
java.lang.String defaultValue,
java.lang.String comment,
java.util.regex.Pattern pattern)
Creates a string property.
|
java.lang.String |
getString(java.lang.String name,
java.lang.String category,
java.lang.String defaultValue,
java.lang.String comment,
java.lang.String langKey)
Creates a string property.
|
java.lang.String |
getString(java.lang.String name,
java.lang.String category,
java.lang.String defaultValue,
java.lang.String comment,
java.lang.String[] validValues)
Creates a string property.
|
java.lang.String |
getString(java.lang.String name,
java.lang.String category,
java.lang.String defaultValue,
java.lang.String comment,
java.lang.String[] validValues,
java.lang.String langKey)
Creates a string property.
|
java.lang.String |
getString(java.lang.String name,
java.lang.String category,
java.lang.String defaultValue,
java.lang.String comment,
java.lang.String langKey,
java.util.regex.Pattern pattern)
Creates a string property.
|
java.lang.String[] |
getStringList(java.lang.String name,
java.lang.String category,
java.lang.String[] defaultValues,
java.lang.String comment)
Creates a string list property.
|
java.lang.String[] |
getStringList(java.lang.String name,
java.lang.String category,
java.lang.String[] defaultValue,
java.lang.String comment,
java.lang.String[] validValues)
Creates a string list property.
|
java.lang.String[] |
getStringList(java.lang.String name,
java.lang.String category,
java.lang.String[] defaultValue,
java.lang.String comment,
java.lang.String[] validValues,
java.lang.String langKey)
Creates a string list property.
|
boolean |
hasCategory(java.lang.String category) |
boolean |
hasChanged() |
boolean |
hasKey(java.lang.String category,
java.lang.String key) |
void |
load() |
boolean |
moveProperty(java.lang.String oldCategory,
java.lang.String propName,
java.lang.String newCategory)
Moves a property from one category to another.
|
void |
removeCategory(ConfigCategory category) |
boolean |
renameProperty(java.lang.String category,
java.lang.String oldPropName,
java.lang.String newPropName)
Renames a property in a given category.
|
void |
save() |
Configuration |
setCategoryComment(java.lang.String category,
java.lang.String comment)
Adds a comment to the specified ConfigCategory object
|
Configuration |
setCategoryConfigEntryClass(java.lang.String category,
java.lang.Class<? extends GuiConfigEntries.IConfigEntry> clazz)
Sets the custom IConfigEntry class that should be used in place of the standard entry class (which is just a button that
navigates into the category).
|
Configuration |
setCategoryLanguageKey(java.lang.String category,
java.lang.String langKey)
Adds a language key to the specified ConfigCategory object
|
Configuration |
setCategoryPropertyOrder(java.lang.String category,
java.util.List<java.lang.String> propOrder)
Sets the order that direct child properties of this config category will be written to the config file and will be displayed in
config GUIs.
|
Configuration |
setCategoryRequiresMcRestart(java.lang.String category,
boolean requiresMcRestart)
Sets whether or not this ConfigCategory requires Minecraft to be restarted when changed.
|
Configuration |
setCategoryRequiresWorldRestart(java.lang.String category,
boolean requiresWorldRestart)
Sets the flag for whether or not this category can be edited while a world is running.
|
java.lang.String |
toString() |
public static final java.lang.String CATEGORY_GENERAL
public static final java.lang.String CATEGORY_CLIENT
public static final java.lang.String ALLOWED_CHARS
public static final java.lang.String DEFAULT_ENCODING
public static final java.lang.String CATEGORY_SPLITTER
public static final java.lang.String NEW_LINE
public static final java.lang.String COMMENT_SEPARATOR
public static final com.google.common.base.CharMatcher allowedProperties
public java.lang.String defaultEncoding
public boolean isChild
public Configuration()
public Configuration(java.io.File file)
public Configuration(java.io.File file, java.lang.String configVersion)
public Configuration(java.io.File file, java.lang.String configVersion, boolean caseSensitiveCustomCategories)
public Configuration(java.io.File file, boolean caseSensitiveCustomCategories)
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getDefinedConfigVersion()
public java.lang.String getLoadedConfigVersion()
public Property get(java.lang.String category, java.lang.String key, boolean defaultValue)
category
- the config categorykey
- the Property key valuedefaultValue
- the default valuepublic Property get(java.lang.String category, java.lang.String key, boolean defaultValue, java.lang.String comment)
category
- the config categorykey
- the Property key valuedefaultValue
- the default valuecomment
- a String commentpublic Property get(java.lang.String category, java.lang.String key, boolean[] defaultValues)
category
- the config categorykey
- the Property key valuedefaultValues
- an array containing the default valuespublic Property get(java.lang.String category, java.lang.String key, boolean[] defaultValues, java.lang.String comment)
category
- the config categorykey
- the Property key valuedefaultValues
- an array containing the default valuescomment
- a String commentpublic Property get(java.lang.String category, java.lang.String key, boolean[] defaultValues, java.lang.String comment, boolean isListLengthFixed, int maxListLength)
category
- the config categorykey
- the Property key valuedefaultValues
- an array containing the default valuescomment
- a String commentisListLengthFixed
- boolean for whether this array is required to be a specific length (defined by the default value array
length or maxListLength)maxListLength
- the maximum length of this array, use -1 for no max lengthpublic Property get(java.lang.String category, java.lang.String key, int defaultValue)
category
- the config categorykey
- the Property key valuedefaultValue
- the default valuepublic Property get(java.lang.String category, java.lang.String key, int defaultValue, java.lang.String comment)
category
- the config categorykey
- the Property key valuedefaultValue
- the default valuecomment
- a String commentpublic Property get(java.lang.String category, java.lang.String key, int defaultValue, java.lang.String comment, int minValue, int maxValue)
category
- the config categorykey
- the Property key valuedefaultValue
- the default valuecomment
- a String commentminValue
- minimum boundarymaxValue
- maximum boundarypublic Property get(java.lang.String category, java.lang.String key, int[] defaultValues)
category
- the config categorykey
- the Property key valuedefaultValues
- an array containing the default valuespublic Property get(java.lang.String category, java.lang.String key, int[] defaultValues, java.lang.String comment)
category
- the config categorykey
- the Property key valuedefaultValues
- an array containing the default valuescomment
- a String commentpublic Property get(java.lang.String category, java.lang.String key, int[] defaultValues, java.lang.String comment, int minValue, int maxValue)
category
- the config categorykey
- the Property key valuedefaultValues
- an array containing the default valuescomment
- a String commentminValue
- minimum boundarymaxValue
- maximum boundarypublic Property get(java.lang.String category, java.lang.String key, int[] defaultValues, java.lang.String comment, int minValue, int maxValue, boolean isListLengthFixed, int maxListLength)
category
- the config categorykey
- the Property key valuedefaultValues
- an array containing the default valuescomment
- a String commentminValue
- minimum boundarymaxValue
- maximum boundaryisListLengthFixed
- boolean for whether this array is required to be a specific length (defined by the default value array
length or maxListLength)maxListLength
- the maximum length of this array, use -1 for no max lengthpublic Property get(java.lang.String category, java.lang.String key, double defaultValue)
category
- the config categorykey
- the Property key valuedefaultValue
- the default valuepublic Property get(java.lang.String category, java.lang.String key, double defaultValue, java.lang.String comment)
category
- the config categorykey
- the Property key valuedefaultValue
- the default valuecomment
- a String commentpublic Property get(java.lang.String category, java.lang.String key, double defaultValue, java.lang.String comment, double minValue, double maxValue)
category
- the config categorykey
- the Property key valuedefaultValue
- the default valuecomment
- a String commentminValue
- minimum boundarymaxValue
- maximum boundarypublic Property get(java.lang.String category, java.lang.String key, double[] defaultValues)
category
- the config categorykey
- the Property key valuedefaultValues
- an array containing the default valuespublic Property get(java.lang.String category, java.lang.String key, double[] defaultValues, java.lang.String comment)
category
- the config categorykey
- the Property key valuedefaultValues
- an array containing the default valuescomment
- a String commentpublic Property get(java.lang.String category, java.lang.String key, double[] defaultValues, java.lang.String comment, double minValue, double maxValue)
category
- the config categorykey
- the Property key valuedefaultValues
- an array containing the default valuescomment
- a String commentminValue
- minimum boundarymaxValue
- maximum boundarypublic Property get(java.lang.String category, java.lang.String key, double[] defaultValues, java.lang.String comment, double minValue, double maxValue, boolean isListLengthFixed, int maxListLength)
category
- the config categorykey
- the Property key valuedefaultValues
- an array containing the default valuescomment
- a String commentminValue
- minimum boundarymaxValue
- maximum boundaryisListLengthFixed
- boolean for whether this array is required to be a specific length (defined by the default value array
length or maxListLength)maxListLength
- the maximum length of this array, use -1 for no max lengthpublic Property get(java.lang.String category, java.lang.String key, java.lang.String defaultValue)
category
- the config categorykey
- the Property key valuedefaultValue
- the default valuepublic Property get(java.lang.String category, java.lang.String key, java.lang.String defaultValue, java.lang.String comment)
category
- the config categorykey
- the Property key valuedefaultValue
- the default valuecomment
- a String commentpublic Property get(java.lang.String category, java.lang.String key, java.lang.String defaultValue, java.lang.String comment, java.util.regex.Pattern validationPattern)
category
- the config categorykey
- the Property key valuedefaultValue
- the default valuecomment
- a String commentvalidationPattern
- a Pattern object for input validationpublic Property get(java.lang.String category, java.lang.String key, java.lang.String defaultValue, java.lang.String comment, java.lang.String[] validValues)
category
- the config categorykey
- the Property key valuedefaultValue
- the default valuecomment
- a String commentvalidValues
- an array of valid values that this Property can be set to. If an array is provided the Config GUI control will be
a value cycle button.public Property get(java.lang.String category, java.lang.String key, java.lang.String[] defaultValues)
category
- the config categorykey
- the Property key valuedefaultValues
- an array containing the default valuespublic Property get(java.lang.String category, java.lang.String key, java.lang.String[] defaultValues, java.lang.String comment)
category
- the config categorykey
- the Property key valuedefaultValues
- an array containing the default valuescomment
- a String commentpublic Property get(java.lang.String category, java.lang.String key, java.lang.String[] defaultValues, java.lang.String comment, java.util.regex.Pattern validationPattern)
category
- the config categorykey
- the Property key valuedefaultValues
- an array containing the default valuescomment
- a String commentvalidationPattern
- a Pattern object for input validationpublic Property get(java.lang.String category, java.lang.String key, java.lang.String[] defaultValues, java.lang.String comment, boolean isListLengthFixed, int maxListLength, java.util.regex.Pattern validationPattern)
category
- the config categorykey
- the Property key valuedefaultValues
- an array containing the default valuescomment
- a String commentisListLengthFixed
- boolean for whether this array is required to be a specific length (defined by the default value array
length or maxListLength)maxListLength
- the maximum length of this array, use -1 for no max lengthvalidationPattern
- a Pattern object for input validationpublic Property get(java.lang.String category, java.lang.String key, java.lang.String defaultValue, java.lang.String comment, Property.Type type)
category
- the config categorykey
- the Property key valuedefaultValue
- the default valuecomment
- a String commenttype
- a Property.Type enum valuepublic Property get(java.lang.String category, java.lang.String key, java.lang.String[] defaultValues, java.lang.String comment, Property.Type type)
category
- the config categorykey
- the Property key valuedefaultValues
- an array containing the default valuescomment
- a String commenttype
- a Property.Type enum valuepublic boolean hasCategory(java.lang.String category)
public boolean hasKey(java.lang.String category, java.lang.String key)
public void load()
public void save()
public ConfigCategory getCategory(java.lang.String category)
public void removeCategory(ConfigCategory category)
public Configuration setCategoryComment(java.lang.String category, java.lang.String comment)
category
- the config categorycomment
- a String commentpublic void addCustomCategoryComment(java.lang.String category, java.lang.String comment)
public Configuration setCategoryLanguageKey(java.lang.String category, java.lang.String langKey)
category
- the config categorylangKey
- a language key string such as configcategory.generalpublic Configuration setCategoryConfigEntryClass(java.lang.String category, java.lang.Class<? extends GuiConfigEntries.IConfigEntry> clazz)
GuiConfig
(the parent
GuiConfig screen will be provided), GuiPropertyList
(the parent GuiPropertyList will be provided), IConfigElement
(the IConfigElement for this Property will be provided).public Configuration setCategoryRequiresWorldRestart(java.lang.String category, boolean requiresWorldRestart)
public Configuration setCategoryRequiresMcRestart(java.lang.String category, boolean requiresMcRestart)
public Configuration setCategoryPropertyOrder(java.lang.String category, java.util.List<java.lang.String> propOrder)
public static void enableGlobalConfig()
public boolean hasChanged()
public java.util.Set<java.lang.String> getCategoryNames()
public boolean renameProperty(java.lang.String category, java.lang.String oldPropName, java.lang.String newPropName)
category
- the category in which the property residesoldPropName
- the existing property namenewPropName
- the new property namepublic boolean moveProperty(java.lang.String oldCategory, java.lang.String propName, java.lang.String newCategory)
oldCategory
- the category the property currently resides inpropName
- the name of the property to movenewCategory
- the category the property should be moved topublic void copyCategoryProps(Configuration fromConfig, java.lang.String[] ctgys)
public java.lang.String getString(java.lang.String name, java.lang.String category, java.lang.String defaultValue, java.lang.String comment)
name
- Name of the property.category
- Category of the property.defaultValue
- Default value of the property.comment
- A brief description what the property does.public java.lang.String getString(java.lang.String name, java.lang.String category, java.lang.String defaultValue, java.lang.String comment, java.lang.String langKey)
name
- Name of the property.category
- Category of the property.defaultValue
- Default value of the property.comment
- A brief description what the property does.langKey
- A language key used for localization of GUIspublic java.lang.String getString(java.lang.String name, java.lang.String category, java.lang.String defaultValue, java.lang.String comment, java.util.regex.Pattern pattern)
name
- Name of the property.category
- Category of the property.defaultValue
- Default value of the property.comment
- A brief description what the property does.public java.lang.String getString(java.lang.String name, java.lang.String category, java.lang.String defaultValue, java.lang.String comment, java.lang.String langKey, java.util.regex.Pattern pattern)
name
- Name of the property.category
- Category of the property.defaultValue
- Default value of the property.comment
- A brief description what the property does.langKey
- A language key used for localization of GUIspublic java.lang.String getString(java.lang.String name, java.lang.String category, java.lang.String defaultValue, java.lang.String comment, java.lang.String[] validValues)
name
- Name of the property.category
- Category of the property.defaultValue
- Default value of the property.comment
- A brief description what the property does.validValues
- A list of valid values that this property can be set to.public java.lang.String getString(java.lang.String name, java.lang.String category, java.lang.String defaultValue, java.lang.String comment, java.lang.String[] validValues, java.lang.String langKey)
name
- Name of the property.category
- Category of the property.defaultValue
- Default value of the property.comment
- A brief description what the property does.validValues
- A list of valid values that this property can be set to.langKey
- A language key used for localization of GUIspublic java.lang.String[] getStringList(java.lang.String name, java.lang.String category, java.lang.String[] defaultValues, java.lang.String comment)
name
- Name of the property.category
- Category of the property.defaultValue
- Default value of the property.comment
- A brief description what the property does.public java.lang.String[] getStringList(java.lang.String name, java.lang.String category, java.lang.String[] defaultValue, java.lang.String comment, java.lang.String[] validValues)
name
- Name of the property.category
- Category of the property.defaultValue
- Default value of the property.comment
- A brief description what the property does.public java.lang.String[] getStringList(java.lang.String name, java.lang.String category, java.lang.String[] defaultValue, java.lang.String comment, java.lang.String[] validValues, java.lang.String langKey)
name
- Name of the property.category
- Category of the property.defaultValue
- Default value of the property.comment
- A brief description what the property does.public boolean getBoolean(java.lang.String name, java.lang.String category, boolean defaultValue, java.lang.String comment)
name
- Name of the property.category
- Category of the property.defaultValue
- Default value of the property.comment
- A brief description what the property does.public boolean getBoolean(java.lang.String name, java.lang.String category, boolean defaultValue, java.lang.String comment, java.lang.String langKey)
name
- Name of the property.category
- Category of the property.defaultValue
- Default value of the property.comment
- A brief description what the property does.langKey
- A language key used for localization of GUIspublic int getInt(java.lang.String name, java.lang.String category, int defaultValue, int minValue, int maxValue, java.lang.String comment)
name
- Name of the property.category
- Category of the property.defaultValue
- Default value of the property.minValue
- Minimum value of the property.maxValue
- Maximum value of the property.comment
- A brief description what the property does.public int getInt(java.lang.String name, java.lang.String category, int defaultValue, int minValue, int maxValue, java.lang.String comment, java.lang.String langKey)
name
- Name of the property.category
- Category of the property.defaultValue
- Default value of the property.minValue
- Minimum value of the property.maxValue
- Maximum value of the property.comment
- A brief description what the property does.langKey
- A language key used for localization of GUIspublic float getFloat(java.lang.String name, java.lang.String category, float defaultValue, float minValue, float maxValue, java.lang.String comment)
name
- Name of the property.category
- Category of the property.defaultValue
- Default value of the property.minValue
- Minimum value of the property.maxValue
- Maximum value of the property.comment
- A brief description what the property does.public float getFloat(java.lang.String name, java.lang.String category, float defaultValue, float minValue, float maxValue, java.lang.String comment, java.lang.String langKey)
name
- Name of the property.category
- Category of the property.defaultValue
- Default value of the property.minValue
- Minimum value of the property.maxValue
- Maximum value of the property.comment
- A brief description what the property does.langKey
- A language key used for localization of GUIspublic java.io.File getConfigFile()