Interface PromptOptionItem


public interface PromptOptionItem
An item selectable in a specific PromptOption.
Since:
5.2.240903
  • Method Summary

    Modifier and Type
    Method
    Description
    static @NotNull PromptOptionItem
    create(@NotNull String name, @NotNull String prompt)
    Creates a new option item definition.
    @NotNull String
    Returns the name of this option item.
    @NotNull String
    Returns the prompt text associated with this option item.
  • Method Details

    • create

      @NotNull static @NotNull PromptOptionItem create(@NotNull @NotNull String name, @NotNull @NotNull String prompt)
      Creates a new option item definition.
      Parameters:
      name - The name of the item to be shown.
      prompt - The prompt text associated with the option item.
      Returns:
      The resulting item definition.
      Since:
      5.2.240903
    • getName

      @NotNull @NotNull String getName()
      Returns the name of this option item.
      Returns:
      The name of this item to be shown.
      Since:
      5.2.240903
    • getPrompt

      @NotNull @NotNull String getPrompt()
      Returns the prompt text associated with this option item.
      Returns:
      The prompt text of this item.
      Since:
      5.2.240903