Package journeymap.api.v2.client.option
Class IntegerOption
-
Field Summary
Fields inherited from class journeymap.api.v2.client.option.Option
config, defaultValue -
Constructor Summary
ConstructorsConstructorDescriptionIntegerOption(OptionCategory category, String fieldName, String label, 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 -
Method Summary
Methods inherited from class journeymap.api.v2.client.option.Option
get, getCategory, getDefaultValue, getFieldName, getLabel, getSortOrder, set, setSortOrder
-
Constructor Details
-
IntegerOption
public IntegerOption(OptionCategory category, String fieldName, String label, 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- Parameters:
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
-
-
Method Details
-
getMinValue
public int getMinValue() -
getMaxValue
public int getMaxValue()
-