Interface TextDialogInput

All Superinterfaces:
DialogInput

@NonExtendable public non-sealed interface TextDialogInput extends DialogInput
  • 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.
    The label for the input.
    boolean
    Whether the label should be visible.
    @org.jetbrains.annotations.Range(from=1L, to=2147483647L) int
    The format for the label (a translation key or format string).
    The multiline options for the input, or null if not set.
    @org.jetbrains.annotations.Range(from=1L, to=1024L) int
    The width of the input.

    Methods inherited from interface io.papermc.paper.registry.data.dialog.input.DialogInput

    key
  • Method Details

    • width

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

      @Contract(pure=true) Component label()
      The label for the input.
      Returns:
      the label component
    • labelVisible

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

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

      @Contract(pure=true) @org.jetbrains.annotations.Range(from=1L, to=2147483647L) int maxLength()
      The format for the label (a translation key or format string).
      Returns:
      the label format
    • multiline

      The multiline options for the input, or null if not set.
      Returns:
      the multiline options