Interface TextDialogInput

All Superinterfaces:
DialogInput

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

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    A builder for a text dialog input.
    static interface 
    Represents the multiline options for a text dialog input.
  • Method Summary

    Modifier and Type
    Method
    Description
    The initial value of the input.
    net.kyori.adventure.text.Component
    The label for the input.
    boolean
    Whether the label should be visible.
    @Positive int
    The format for the label (a translation key or format string).
    The multiline options 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 of the input
      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
    • labelVisible

      @Contract(pure=true) boolean labelVisible()
      Whether the label should be visible.
      Returns:
      true if the label is visible, false otherwise
      Since:
      1.21.7
    • initial

      @Contract(pure=true) String initial()
      The initial value of the input.
      Returns:
      the initial text
      Since:
      1.21.7
    • maxLength

      @Contract(pure=true) @Positive int maxLength()
      The format for the label (a translation key or format string).
      Returns:
      the label format
      Since:
      1.21.7
    • multiline

      @Contract(pure=true) @Nullable TextDialogInput.MultilineOptions multiline()
      The multiline options for the input, or null if not set.
      Returns:
      the multiline options
      Since:
      1.21.7