Interface PromptOptionList

All Superinterfaces:
PromptList<ConfigurablePromptOption>

@Experimental public interface PromptOptionList extends PromptList<ConfigurablePromptOption>
A modifiable list of prompt options, containing both modifiable options and inherited ones. Keep in mind that inherited options can not be modified, any modification will be ignored. Options available as preset can be modified on in the ServicePromptConfiguration but can not be removed.
Since:
5.2.241209
  • Method Details

    • get

      @NotNull default @NotNull Optional<ConfigurablePromptOption> get(@NotNull @NotNull UUID id)
      Searches for a specific option by id.
      Parameters:
      id - The id of the option to look for.
      Returns:
      The matching option, if there is one.
      Since:
      5.2.241209
    • create

      @NotNull @NotNull ConfigurablePromptOption create(@NotNull @NotNull UUID id)
      Creates a new configurable prompt, use PromptList.add(Object) to add the option to this list.
      Parameters:
      id - The unique identifier of the option.
      Returns:
      The configurable prompt.
      Since:
      5.2.241209
    • create

      @NotNull default @NotNull ConfigurablePromptOption create()
      Creates a new configurable prompt, use PromptList.add(Object) to add the option to this list.
      Returns:
      The configurable prompt.
      Since:
      5.2.241209