Package journeymap.api.v2.client.option
Class CustomIntegerOption
java.lang.Object
journeymap.api.v2.client.option.Option<Integer>
journeymap.api.v2.client.option.CustomOption<Integer>
journeymap.api.v2.client.option.CustomIntegerOption
-
Field Summary
Fields inherited from class journeymap.api.v2.client.option.Option
config, defaultValue -
Constructor Summary
ConstructorsConstructorDescriptionCustomIntegerOption(OptionCategory category, String fieldName, String label, Integer defaultValue, Integer minValue, Integer maxValue, Boolean allowNeg) Creates an Integer textbox. -
Method Summary
Modifier and TypeMethodDescriptionMethods inherited from class journeymap.api.v2.client.option.Option
get, getCategory, getDefaultValue, getFieldName, getLabel, getSortOrder, set, setSortOrder
-
Constructor Details
-
CustomIntegerOption
public CustomIntegerOption(OptionCategory category, String fieldName, String label, Integer defaultValue, Integer minValue, Integer maxValue, Boolean allowNeg) Creates an Integer textbox. 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 value.minValue- - The minimum allowed value.maxValue- - The maximum allowed value.allowNeg- - Allow negative values.
-
-
Method Details
-
getMinValue
-
getMaxValue
-
getAllowNeg
-