Interface NumberRangeDialogInput

All Superinterfaces:
DialogInput

@NonExtendable public non-sealed interface NumberRangeDialogInput extends DialogInput
Since:
1.21.7
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    A builder for creating instances of NumberRangeDialogInput.
  • Method Summary

    Modifier and Type
    Method
    Description
    float
    end()
    The end of the range.
    @Nullable Float
    The initial value of the input, or null if not set.
    net.kyori.adventure.text.Component
    The label for the input.
    The format for the label, which can be a translation key or a format string.
    float
    The start of the range.
    @Positive @Nullable Float
    The step size for the input, or null if not set.
    @Range(from=1L,to=1024L) int
    The width of the input.

    Methods inherited from interface DialogInput

    key
  • Method Details

    • width

      @Contract(pure=true) @Range(from=1L,to=1024L) int width()
      The width of the input.
      Returns:
      the width
      Since:
      1.21.7
    • label

      @Contract(pure=true) net.kyori.adventure.text.Component label()
      The label for the input.
      Returns:
      the label component
      Since:
      1.21.7
    • labelFormat

      @Contract(pure=true) String labelFormat()
      The format for the label, which can be a translation key or a format string.

      Example: "%s: %s" or "options.generic_value"

      Returns:
      the label format
      Since:
      1.21.7
    • start

      @Contract(pure=true) float start()
      The start of the range.
      Returns:
      the start value
      Since:
      1.21.7
    • end

      @Contract(pure=true) float end()
      The end of the range.
      Returns:
      the end value
      Since:
      1.21.7
    • initial

      @Contract(pure=true) @Nullable Float initial()
      The initial value of the input, or null if not set.
      Returns:
      the initial value, or null
      Since:
      1.21.7
    • step

      @Contract(pure=true) @Positive @Nullable Float step()
      The step size for the input, or null if not set.
      Returns:
      the step size, or null
      Since:
      1.21.7