java.lang.Object
io.github.projectunified.unidialog.bungeecord.input.BungeeDialogInput
io.github.projectunified.unidialog.bungeecord.input.BungeeTextInput
All Implemented Interfaces:
TextInput<BungeeTextInput>

public class BungeeTextInput extends BungeeDialogInput implements TextInput<BungeeTextInput>
  • Constructor Details

    • BungeeTextInput

      public BungeeTextInput(String key)
  • Method Details

    • width

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

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

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

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

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

      public BungeeTextInput height(@Nullable @Nullable Integer height)
      Description copied from interface: TextInput
      Set the height of the input
      Specified by:
      height in interface TextInput<BungeeTextInput>
      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 BungeeDialogInput