Class SpigotTextInput

java.lang.Object
io.github.projectunified.unidialog.spigot.input.SpigotDialogInput
io.github.projectunified.unidialog.spigot.input.SpigotTextInput
All Implemented Interfaces:
TextInput<SpigotTextInput>

public class SpigotTextInput extends SpigotDialogInput implements TextInput<SpigotTextInput>
  • Constructor Details

    • SpigotTextInput

      public SpigotTextInput(String key)
  • Method Details

    • width

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

      public SpigotTextInput label(@Nullable @Nullable net.md_5.bungee.api.chat.BaseComponent label)
      Set the label for the input
      Parameters:
      label - the label text
      Returns:
      the current instance for method chaining
    • label

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

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

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

      public SpigotTextInput 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<SpigotTextInput>
      Parameters:
      maxLines - the maximum number of lines allowed
      Returns:
      the current instance for method chaining
    • height

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

      public net.md_5.bungee.api.dialog.input.DialogInput getDialogInput()
      Specified by:
      getDialogInput in class SpigotDialogInput