Class IntegerOption

java.lang.Object
journeymap.api.v2.client.option.Option<Integer>
journeymap.api.v2.client.option.IntegerOption

public class IntegerOption extends Option<Integer>
  • 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 value
      minValue - - The min value
      maxValue - - The max value
  • Method Details

    • getMinValue

      public int getMinValue()
    • getMaxValue

      public int getMaxValue()