public class IntegerOption extends Option<java.lang.Integer>
config, defaultValue| Constructor and Description |
|---|
IntegerOption(OptionCategory category,
java.lang.String fieldName,
java.lang.String label,
java.lang.Integer defaultValue,
int minValue,
int maxValue)
Creates a slider button of Integer values
For tooltips, your i18n key plus .tooltip in your language json example mod.option.label and mod.option.label.tooltip
|
| Modifier and Type | Method and Description |
|---|---|
int |
getMaxValue() |
int |
getMinValue() |
get, getCategory, getDefaultValue, getFieldName, getLabel, getSortOrder, set, setSortOrderpublic IntegerOption(OptionCategory category, java.lang.String fieldName, java.lang.String label, java.lang.Integer defaultValue, int minValue, int maxValue)
category - - The category;fieldName - - The fieldName;label - - The label, can be the display string or i18n key.defaultValue - - The default valueminValue - - The min valuemaxValue - - The max value