Interface SingleOptionDialogInput

All Superinterfaces:
DialogInput

@NonExtendable public non-sealed interface SingleOptionDialogInput extends DialogInput
A single option dialog input.

Created via DialogInput.singleOption(String, int, List, Component, boolean)

Since:
1.21.7
  • Method Details

    • width

      @Contract(pure=true) @Range(from=1L,to=1024L) int width()
      The width of the input.
      Returns:
      the width
      Since:
      1.21.7
    • entries

      @Contract(pure=true) @Unmodifiable List<SingleOptionDialogInput.OptionEntry> entries()
      The list of options for the input.
      Returns:
      the list of option entries
      Since:
      1.21.7
    • label

      @Contract(pure=true) net.kyori.adventure.text.Component label()
      The label for the input.
      Returns:
      the label component
      Since:
      1.21.7
    • labelVisible

      @Contract(pure=true) boolean labelVisible()
      Whether the label should be visible.
      Returns:
      true if the label is visible, false otherwise
      Since:
      1.21.7