Class CustomIntegerOption


@Deprecated(forRemoval=true) public class CustomIntegerOption extends CustomOption<Integer>
Deprecated, for removal: This API element is subject to removal in a future version.
Use CustomIntegerOption instead. Scheduled for removal in JourneyMap for Minecraft 26.2.
  • Constructor Details

    • CustomIntegerOption

      public CustomIntegerOption(OptionCategory category, String fieldName, String label, Integer defaultValue, Integer minValue, Integer maxValue, Boolean allowNeg)
      Deprecated, for removal: This API element is subject to removal in a future version.
      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()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getMaxValue

      public Integer getMaxValue()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getAllowNeg

      public Boolean getAllowNeg()
      Deprecated, for removal: This API element is subject to removal in a future version.