Package | Description |
---|---|
net.minecraftforge.common.config |
Modifier and Type | Field and Description |
---|---|
private Property |
ConfigElement.prop |
Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.String,Property> |
ConfigCategory.properties |
Modifier and Type | Method and Description |
---|---|
Property |
ConfigCategory.get(java.lang.Object key) |
Property |
ConfigCategory.get(java.lang.String key) |
Property |
Configuration.get(java.lang.String category,
java.lang.String key,
boolean defaultValue)
Gets a boolean Property object without a comment using the default settings.
|
Property |
Configuration.get(java.lang.String category,
java.lang.String key,
boolean[] defaultValues)
Gets a boolean array Property without a comment using the default settings.
|
Property |
Configuration.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 |
Configuration.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 |
Configuration.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 |
Configuration.get(java.lang.String category,
java.lang.String key,
double defaultValue)
Gets a double Property object without a comment using default settings.
|
Property |
Configuration.get(java.lang.String category,
java.lang.String key,
double[] defaultValues)
Gets a double array Property object without a comment using default settings.
|
Property |
Configuration.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 |
Configuration.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 |
Configuration.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 |
Configuration.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 |
Configuration.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 |
Configuration.get(java.lang.String category,
java.lang.String key,
int defaultValue)
Gets an integer Property object without a comment using default settings.
|
Property |
Configuration.get(java.lang.String category,
java.lang.String key,
int[] defaultValues)
Gets an integer array Property object without a comment using default settings.
|
Property |
Configuration.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 |
Configuration.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 |
Configuration.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 |
Configuration.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 |
Configuration.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 |
Configuration.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 |
Configuration.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 |
Configuration.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 |
Configuration.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 |
Configuration.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 |
Configuration.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 |
Configuration.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 |
Configuration.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 |
Configuration.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 |
Configuration.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.
|
Property |
Configuration.get(java.lang.String category,
java.lang.String key,
java.lang.String defaultValue,
java.lang.String comment,
java.lang.String[] validValues,
java.lang.String[] validValuesDisplay)
Gets a string Property with a comment using the defined validValues array and otherwise default settings.
|
private static Property |
ConfigManager.property(Configuration cfg,
java.lang.String category,
java.lang.String property,
Property.Type type,
boolean isList) |
Property |
ConfigCategory.put(java.lang.String key,
Property value) |
Property |
ConfigCategory.remove(java.lang.Object key) |
Property |
Property.setArrayEntryClass(java.lang.Class<? extends GuiEditArrayEntries.IArrayEntry> clazz)
Sets a custom IGuiEditListEntry class that should be used in place of the standard entry class for this Property type.
|
Property |
Property.setConfigEntryClass(java.lang.Class<? extends GuiConfigEntries.IConfigEntry> clazz)
Sets a custom IConfigEntry class that should be used in place of the standard entry class for this Property type.
|
Property |
Property.setDefaultValue(boolean defaultValue)
Sets the default boolean value of this Property.
|
Property |
Property.setDefaultValue(double defaultValue)
Sets the default double value of this Property.
|
Property |
Property.setDefaultValue(int defaultValue)
Sets the default int value of this Property.
|
Property |
Property.setDefaultValue(java.lang.String defaultValue)
Sets the default string value of this Property.
|
Property |
Property.setDefaultValues(boolean[] defaultValues)
Sets the default boolean[] values of this Property.
|
Property |
Property.setDefaultValues(double[] defaultValues)
Sets the default double[] values of this Property
|
Property |
Property.setDefaultValues(int[] defaultValues)
Sets the default int[] values of this Property.
|
Property |
Property.setDefaultValues(java.lang.String[] defaultValues)
Sets the default String[] values of this Property.
|
Property |
Property.setIsListLengthFixed(boolean isListLengthFixed)
Sets the flag for whether this list/array Property has a fixed length.
|
Property |
Property.setLanguageKey(java.lang.String langKey)
Sets the localization language key for this Property so that the config GUI screens are nice and pretty <3.
|
Property |
Property.setMaxListLength(int max)
Sets the maximum length of this list/array Property.
|
Property |
Property.setMaxValue(double maxValue)
Sets the maximum double value of this Property.
|
Property |
Property.setMaxValue(int maxValue)
Sets the maximum int value of this Property.
|
Property |
Property.setMinValue(double minValue)
Sets the minimum double value of this Property.
|
Property |
Property.setMinValue(int minValue)
Sets the minimum int value of this Property.
|
Property |
Property.setRequiresMcRestart(boolean requiresMcRestart)
Sets whether or not this Property requires Minecraft to be restarted when changed.
|
Property |
Property.setRequiresWorldRestart(boolean requiresWorldRestart)
Sets the flag for whether or not this Property can be edited while a world is running.
|
Property |
Property.setShowInGui(boolean showInGui)
Sets whether or not this Property should be allowed to show on config GUIs.
|
Property |
Property.setToDefault()
Sets the current value(s) of this Property to the default value(s).
|
Property |
Property.setValidationPattern(java.util.regex.Pattern validationPattern)
Sets a regex Pattern object used to validate user input for formatted String or String[] properties.
|
Property |
Property.setValidValues(java.lang.String[] validValues)
Sets the array of valid values that this String Property can be set to.
|
Property |
Property.setValidValuesDisplay(java.lang.String[] validValuesDisplay)
Sets the array of the config GUI display versions of the valid values that this String Property can be set to.
|
Property |
Property.setValue(boolean value)
Sets the value of this Property to the provided boolean value.
|
Property |
Property.setValue(double value)
Sets the value of this Property to the provided double value.
|
Property |
Property.setValue(int value)
Sets the value of this Property to the provided int value.
|
Property |
Property.setValue(java.lang.String value)
Sets the value of this Property to the provided String value.
|
Property |
Property.setValues(boolean[] values)
Sets the values of this Property to the provided boolean[] values.
|
Property |
Property.setValues(double[] values)
Sets the values of this Property to the provided double[] values.
|
Property |
Property.setValues(int[] values)
Sets the values of this Property to the provided int[] values.
|
Property |
Property.setValues(java.lang.String[] values)
Sets the values of this Property to the provided String[] values.
|
Modifier and Type | Method and Description |
---|---|
java.util.Set<java.util.Map.Entry<java.lang.String,Property>> |
ConfigCategory.entrySet() |
java.util.List<Property> |
ConfigCategory.getOrderedValues() |
java.util.Map<java.lang.String,Property> |
ConfigCategory.getValues() |
java.util.Collection<Property> |
ConfigCategory.values() |
Modifier and Type | Method and Description |
---|---|
static ConfigGuiType |
ConfigElement.getType(Property prop) |
java.lang.Object |
ITypeAdapter.getValue(Property prop)
Retrieves the properties value
|
Property |
ConfigCategory.put(java.lang.String key,
Property value) |
void |
ITypeAdapter.setDefaultValue(Property property,
java.lang.Object value)
Assigns the default value to the property
|
void |
ITypeAdapter.setValue(Property property,
java.lang.Object value)
Sets the properties value.
|
private static boolean |
ConfigManager.shouldReadFromVar(Property property,
java.lang.Object propValue,
java.lang.Object fieldValue) |
Modifier and Type | Method and Description |
---|---|
void |
ConfigCategory.putAll(java.util.Map<? extends java.lang.String,? extends Property> m) |
Constructor and Description |
---|
ConfigElement(Property prop) |