Interface PromptOperationList

All Superinterfaces:
PromptList<ConfigurablePromptOperation>

@Experimental public interface PromptOperationList extends PromptList<ConfigurablePromptOperation>
A modifiable list of prompt operations, containing both fully modifiable operations and inherited ones. Keep in mind that for inherited operations only the tags can be modified, any other modification will be ignored. Operations 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<ConfigurablePromptOperation> get(@NotNull @NotNull UUID id)
      Searches for a specific operation by id.
      Parameters:
      id - The id of the operation to look for.
      Returns:
      The matching operation, if there is one.
      Since:
      5.2.241209
    • create

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

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