Class MessagePrompt

java.lang.Object
org.bukkit.conversations.MessagePrompt
All Implemented Interfaces:
Cloneable, Prompt

@Deprecated(forRemoval=true) public abstract class MessagePrompt extends Object implements Prompt
Deprecated, for removal: This API element is subject to removal in a future version.
The conversation API has been deprecated for removal. This system does not support component based messages and has been slowly losing functionality over the years as Minecraft has changed that this API can not adapt to. It is recommended you instead manually listen to the AsyncChatEvent or alternatively using Dialog to get user input.
MessagePrompt is the base class for any prompt that only displays a message to the user and requires no input.
  • Constructor Details

    • MessagePrompt

      public MessagePrompt()
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • blocksForInput

      public boolean blocksForInput(@NotNull @NotNull ConversationContext context)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Message prompts never wait for user input before continuing.
      Specified by:
      blocksForInput in interface Prompt
      Parameters:
      context - Context information about the conversation.
      Returns:
      Always false.
    • acceptInput

      Deprecated, for removal: This API element is subject to removal in a future version.
      Accepts and ignores any user input, returning the next prompt in the prompt graph instead.
      Specified by:
      acceptInput in interface Prompt
      Parameters:
      context - Context information about the conversation.
      input - Ignored.
      Returns:
      The next prompt in the prompt graph.
    • getNextPrompt

      @Nullable protected abstract @Nullable Prompt getNextPrompt(@NotNull @NotNull ConversationContext context)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Override this method to return the next prompt in the prompt graph.
      Parameters:
      context - Context information about the conversation.
      Returns:
      The next prompt in the prompt graph.