Class CustomIntegerOption


public class CustomIntegerOption extends CustomOption<Integer>
  • 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

      public Integer getMinValue()
    • getMaxValue

      public Integer getMaxValue()
    • getAllowNeg

      public Boolean getAllowNeg()