类 MessagePrompt

java.lang.Object
org.bukkit.conversations.MessagePrompt
所有已实现的接口:
Cloneable, Prompt

public abstract class MessagePrompt extends Object implements Prompt
MessagePrompt is the base class for any prompt that only displays a message to the user and requires no input.
  • 构造器详细资料

    • MessagePrompt

      public MessagePrompt()
  • 方法详细资料

    • blocksForInput

      public boolean blocksForInput(ConversationContext context)
      Message prompts never wait for user input before continuing.
      指定者:
      blocksForInput 在接口中 Prompt
      参数:
      context - Context information about the conversation.
      返回:
      Always false.
    • acceptInput

      public Prompt acceptInput(ConversationContext context, String input)
      Accepts and ignores any user input, returning the next prompt in the prompt graph instead.
      指定者:
      acceptInput 在接口中 Prompt
      参数:
      context - Context information about the conversation.
      input - Ignored.
      返回:
      The next prompt in the prompt graph.
    • getNextPrompt

      protected abstract Prompt getNextPrompt(ConversationContext context)
      Override this method to return the next prompt in the prompt graph.
      参数:
      context - Context information about the conversation.
      返回:
      The next prompt in the prompt graph.