Interface AdventureTextInput<T extends AdventureTextInput<T>>

Type Parameters:
T - the type of the input, for method chaining
All Superinterfaces:
AdventureSupport, TextInput<T>
All Known Implementing Classes:
PaperTextInput, PETextInput

public interface AdventureTextInput<T extends AdventureTextInput<T>> extends TextInput<T>, AdventureSupport
An extension of TextInput that provides additional methods for handling Component labels.
  • Method Details

    • label

      T label(@Nullable @Nullable net.kyori.adventure.text.Component label)
      Set the label for the input
      Parameters:
      label - the label text
      Returns:
      the current instance for method chaining
    • label

      default T label(@Nullable @Nullable String label)
      Description copied from interface: TextInput
      Set the label for the input
      Specified by:
      label in interface TextInput<T extends AdventureTextInput<T>>
      Parameters:
      label - the label text
      Returns:
      the current instance for method chaining