类 MessagePrompt
java.lang.Object
org.bukkit.conversations.MessagePrompt
MessagePrompt 是任何仅向用户显示消息且不需要输入的提示的基类。
-
字段概要
从接口继承的字段 org.bukkit.conversations.Prompt
END_OF_CONVERSATION -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明acceptInput(@NotNull ConversationContext context, @Nullable String input) 接受并忽略任何用户输入,返回提示图中的下一个提示。booleanblocksForInput(@NotNull ConversationContext context) 消息提示在继续之前从不等待用户输入。getNextPrompt(@NotNull ConversationContext context) 覆盖此方法以返回提示图中的下一个提示。从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 org.bukkit.conversations.Prompt
getPromptText
-
构造器详细资料
-
MessagePrompt
public MessagePrompt()
-
-
方法详细资料
-
blocksForInput
消息提示在继续之前从不等待用户输入。原文: Message prompts never wait for user input before continuing.
- 指定者:
blocksForInput在接口中Prompt- 参数:
context- 关于对话的上下文信息。- 返回:
- 始终返回 false。
-
acceptInput
@Nullable public @Nullable Prompt acceptInput(@NotNull @NotNull ConversationContext context, @Nullable @Nullable String input) 接受并忽略任何用户输入,返回提示图中的下一个提示。原文: 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- 关于对话的上下文信息。- 返回:
- 提示图中的下一个提示。
-