Interface NumberRangeInput<T extends NumberRangeInput<T>>

Type Parameters:
T - the type of the implementing class, for method chaining.
All Known Subinterfaces:
AdventureNumberRangeInput<T>
All Known Implementing Classes:
PaperNumberRangeInput, PENumberRangeInput, SpigotNumberRangeInput

public interface NumberRangeInput<T extends NumberRangeInput<T>>
Interface for number range input in a dialog.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
    static final int
     
  • Method Summary

    Modifier and Type
    Method
    Description
    end(float end)
    Set the end value of the range
    initial(@Nullable Float initial)
    Set the initial value of the range
    label(String label)
    Set the label for the input
    labelFormat(String labelFormat)
    Set the format for the label
    start(float start)
    Set the start value of the range
    step(@Nullable Float step)
    Set the step value for the range
    width(int width)
    Set the width of the input
  • Field Details

  • Method Details

    • width

      T width(int width)
      Set the width of the input
      Parameters:
      width - the width
      Returns:
      the current instance for method chaining
    • label

      T label(String label)
      Set the label for the input
      Parameters:
      label - the label text
      Returns:
      the current instance for method chaining
    • labelFormat

      T labelFormat(String labelFormat)
      Set the format for the label
      Parameters:
      labelFormat - the format string for the label
      Returns:
      the current instance for method chaining
    • start

      T start(float start)
      Set the start value of the range
      Parameters:
      start - the start value
      Returns:
      the current instance for method chaining
    • end

      T end(float end)
      Set the end value of the range
      Parameters:
      end - the end value
      Returns:
      the current instance for method chaining
    • initial

      T initial(@Nullable @Nullable Float initial)
      Set the initial value of the range
      Parameters:
      initial - the initial value, can be null
      Returns:
      the current instance for method chaining
    • step

      T step(@Nullable @Nullable Float step)
      Set the step value for the range
      Parameters:
      step - the step value, can be null
      Returns:
      the current instance for method chaining