Interface TextInput<T extends TextInput<T>>

Type Parameters:
T - the type of the implementing class, for method chaining
All Known Subinterfaces:
AdventureTextInput<T>
All Known Implementing Classes:
PaperTextInput, PETextInput, SpigotTextInput

public interface TextInput<T extends TextInput<T>>
Interface for text input types in a dialog.
  • Field Summary

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

    Modifier and Type
    Method
    Description
    height(@Nullable Integer height)
    Set the height of the input
    initial(String initial)
    Set the initial value for the input
    label(@Nullable String label)
    Set the label for the input
    maxLength(int maxLength)
    Set the maximum length of the input text
    maxLines(@Nullable Integer maxLines)
    Set the maximum number of lines for the input
    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(@Nullable @Nullable String label)
      Set the label for the input
      Parameters:
      label - the label text
      Returns:
      the current instance for method chaining
    • initial

      T initial(String initial)
      Set the initial value for the input
      Parameters:
      initial - the initial text
      Returns:
      the current instance for method chaining
    • maxLength

      T maxLength(int maxLength)
      Set the maximum length of the input text
      Parameters:
      maxLength - the maximum number of characters allowed
      Returns:
      the current instance for method chaining
    • maxLines

      T maxLines(@Nullable @Nullable Integer maxLines)
      Set the maximum number of lines for the input
      Parameters:
      maxLines - the maximum number of lines allowed
      Returns:
      the current instance for method chaining
    • height

      T height(@Nullable @Nullable Integer height)
      Set the height of the input
      Parameters:
      height - the height
      Returns:
      the current instance for method chaining