类 MessagePrompt
java.lang.Object
org.bukkit.conversations.MessagePrompt
MessagePrompt is the base class for any prompt that only displays a message
to the user and requires no input.
-
字段概要
从接口继承的字段 org.bukkit.conversations.Prompt
END_OF_CONVERSATION -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明acceptInput(@NotNull ConversationContext context, @Nullable String input) Accepts and ignores any user input, returning the next prompt in the prompt graph instead.booleanblocksForInput(@NotNull ConversationContext context) Message prompts never wait for user input before continuing.getNextPrompt(@NotNull ConversationContext context) Override this method to return the next prompt in the prompt graph.从类继承的方法 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- Context information about the conversation.- 返回:
- Always 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- Context information about the conversation.input- Ignored.- 返回:
- The next prompt in the prompt graph.
-
getNextPrompt
@Nullable protected abstract @Nullable Prompt getNextPrompt(@NotNull @NotNull 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.
-