java.lang.Object
io.github.projectunified.unidialog.packetevents.input.PEDialogInput
io.github.projectunified.unidialog.packetevents.input.PETextInput
All Implemented Interfaces:
AdventureTextInput<PETextInput>, AdventureSupport, TextInput<PETextInput>

public class PETextInput extends PEDialogInput implements AdventureTextInput<PETextInput>
  • Constructor Details

    • PETextInput

      public PETextInput(Function<String,net.kyori.adventure.text.Component> componentDeserializer)
  • Method Details

    • width

      public PETextInput width(int width)
      Description copied from interface: TextInput
      Set the width of the input
      Specified by:
      width in interface TextInput<PETextInput>
      Parameters:
      width - the width
      Returns:
      the current instance for method chaining
    • label

      public PETextInput label(@Nullable @Nullable net.kyori.adventure.text.Component label)
      Description copied from interface: AdventureTextInput
      Set the label for the input
      Specified by:
      label in interface AdventureTextInput<PETextInput>
      Parameters:
      label - the label text
      Returns:
      the current instance for method chaining
    • initial

      public PETextInput initial(String initial)
      Description copied from interface: TextInput
      Set the initial value for the input
      Specified by:
      initial in interface TextInput<PETextInput>
      Parameters:
      initial - the initial text
      Returns:
      the current instance for method chaining
    • maxLength

      public PETextInput maxLength(int maxLength)
      Description copied from interface: TextInput
      Set the maximum length of the input text
      Specified by:
      maxLength in interface TextInput<PETextInput>
      Parameters:
      maxLength - the maximum number of characters allowed
      Returns:
      the current instance for method chaining
    • maxLines

      public PETextInput maxLines(@Nullable @Nullable Integer maxLines)
      Description copied from interface: TextInput
      Set the maximum number of lines for the input
      Specified by:
      maxLines in interface TextInput<PETextInput>
      Parameters:
      maxLines - the maximum number of lines allowed
      Returns:
      the current instance for method chaining
    • height

      public PETextInput height(@Nullable @Nullable Integer height)
      Description copied from interface: TextInput
      Set the height of the input
      Specified by:
      height in interface TextInput<PETextInput>
      Parameters:
      height - the height
      Returns:
      the current instance for method chaining
    • getInput

      public com.github.retrooper.packetevents.protocol.dialog.input.InputControl getInput()
      Specified by:
      getInput in class PEDialogInput