Interface AdventureTextInput<T extends AdventureTextInput<T>>

Type Parameters:
T - the type of the input, for method chaining
All Superinterfaces:
AdventureSupport, io.github.projectunified.unidialog.core.input.TextInput<T>

public interface AdventureTextInput<T extends AdventureTextInput<T>> extends io.github.projectunified.unidialog.core.input.TextInput<T>, AdventureSupport
An extension of TextInput that provides additional methods for handling Component labels.
  • Field Summary

    Fields inherited from interface io.github.projectunified.unidialog.core.input.TextInput

    DEFAULT_MAX_LENGTH, DEFAULT_WIDTH
  • Method Summary

    Modifier and Type
    Method
    Description
    default T
    label(@Nullable String label)
     
    label(@Nullable net.kyori.adventure.text.Component label)
    Set the label for the input

    Methods inherited from interface io.github.projectunified.unidialog.adventure.support.AdventureSupport

    deserialize, getComponentDeserializer

    Methods inherited from interface io.github.projectunified.unidialog.core.input.TextInput

    height, initial, maxLength, maxLines, width
  • 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)
      Specified by:
      label in interface io.github.projectunified.unidialog.core.input.TextInput<T extends AdventureTextInput<T>>