Annotation Interface RangeNumber


@Retention(RUNTIME) @Target(FIELD) @Documented public @interface RangeNumber
A start and end pair within min() and max() edited with two number inputs
This is RangeSlider without the track so it suits ranges too wide to drag across
The annotated field holds both ends together as a two-element numeric array or list such as float[] or int[] or List<Integer> where index 0 is the start and index 1 is the end
Values are written back in whatever container shape the field already holds so its type is preserved
  • Element Details

    • title

      String title
    • description

      String description
      Default:
      ""
    • icon

      String icon
      Default:
      ""
    • category

      String category
      Default:
      "General"
    • subcategory

      String subcategory
      Default:
      "General"
    • min

      float min
      Default:
      0.0f
    • max

      float max
      Default:
      100.0f
    • step

      float step
      Amount the arrows on each input step by
      Default:
      1.0f
    • formatter

      Class<? extends ValueFormatter> formatter
      Default:
      org.polyfrost.oneconfig.api.config.v1.ValueFormatter.class