类 MessagePrompt

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

public abstract class MessagePrompt extends Object implements Prompt
MessagePrompt 是任何仅向用户显示消息且不需要输入的提示的基类。
  • 构造器详细资料

    • MessagePrompt

      public MessagePrompt()
  • 方法详细资料

    • blocksForInput

      public boolean blocksForInput(@NotNull @NotNull ConversationContext context)
      消息提示在继续之前从不等待用户输入。

      原文: Message prompts never wait for user input before continuing.

      指定者:
      blocksForInput 在接口中 Prompt
      参数:
      context - 关于对话的上下文信息。
      返回:
      始终返回 false。
    • acceptInput

      接受并忽略任何用户输入,返回提示图中的下一个提示。

      原文: Accepts and ignores any user input, returning the next prompt in the prompt graph instead.

      指定者:
      acceptInput 在接口中 Prompt
      参数:
      context - 关于对话的上下文信息。
      input - 被忽略。
      返回:
      提示图中的下一个提示。
    • getNextPrompt

      @Nullable protected abstract @Nullable Prompt getNextPrompt(@NotNull @NotNull ConversationContext context)
      覆盖此方法以返回提示图中的下一个提示。

      原文: Override this method to return the next prompt in the prompt graph.

      参数:
      context - 关于对话的上下文信息。
      返回:
      提示图中的下一个提示。