Class SpigotSingleOptionInput

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

public class SpigotSingleOptionInput extends SpigotDialogInput implements SingleOptionInput<SpigotSingleOptionInput>
  • Constructor Details

    • SpigotSingleOptionInput

      public SpigotSingleOptionInput(String key)
  • Method Details

    • width

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

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

      public SpigotSingleOptionInput option(String id, net.md_5.bungee.api.chat.BaseComponent display, boolean isDefault)
      Add an option to the input
      Parameters:
      id - the identifier for the option
      display - the display text for the option
      isDefault - whether this option is the default selection
      Returns:
      the current instance for method chaining
    • option

      public SpigotSingleOptionInput option(String id, net.md_5.bungee.api.chat.BaseComponent display)
      Add an option to the input
      Parameters:
      id - the identifier for the option
      display - the display text for the option
      Returns:
      the current instance for method chaining
    • option

      public SpigotSingleOptionInput option(String id, String display, boolean isDefault)
      Description copied from interface: SingleOptionInput
      Add an option to the input
      Specified by:
      option in interface SingleOptionInput<SpigotSingleOptionInput>
      Parameters:
      id - the identifier for the option
      display - the display text for the option
      isDefault - whether this option is the default selection
      Returns:
      the current instance for method chaining
    • getDialogInput

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