Class PaperTextInput

java.lang.Object
io.github.projectunified.unidialog.paper.input.PaperDialogInput
io.github.projectunified.unidialog.paper.input.PaperTextInput
All Implemented Interfaces:
io.github.projectunified.unidialog.adventure.input.AdventureTextInput<PaperTextInput>, io.github.projectunified.unidialog.adventure.support.AdventureSupport, io.github.projectunified.unidialog.core.input.TextInput<PaperTextInput>

public class PaperTextInput extends PaperDialogInput implements io.github.projectunified.unidialog.adventure.input.AdventureTextInput<PaperTextInput>
  • Constructor Details

    • PaperTextInput

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

    • label

      public PaperTextInput label(@Nullable @Nullable net.kyori.adventure.text.Component label)
      Specified by:
      label in interface io.github.projectunified.unidialog.adventure.input.AdventureTextInput<PaperTextInput>
    • width

      public PaperTextInput width(int width)
      Specified by:
      width in interface io.github.projectunified.unidialog.core.input.TextInput<PaperTextInput>
    • initial

      public PaperTextInput initial(String initial)
      Specified by:
      initial in interface io.github.projectunified.unidialog.core.input.TextInput<PaperTextInput>
    • maxLength

      public PaperTextInput maxLength(int maxLength)
      Specified by:
      maxLength in interface io.github.projectunified.unidialog.core.input.TextInput<PaperTextInput>
    • maxLines

      public PaperTextInput maxLines(@Nullable @Nullable Integer maxLines)
      Specified by:
      maxLines in interface io.github.projectunified.unidialog.core.input.TextInput<PaperTextInput>
    • height

      public PaperTextInput height(@Nullable @Nullable Integer height)
      Specified by:
      height in interface io.github.projectunified.unidialog.core.input.TextInput<PaperTextInput>
    • getDialogInput

      public io.papermc.paper.registry.data.dialog.input.DialogInput getDialogInput()
      Specified by:
      getDialogInput in class PaperDialogInput