Package org.bukkit.conversations
Class MessagePrompt
- java.lang.Object
-
- org.bukkit.conversations.MessagePrompt
-
-
Field Summary
-
Fields inherited from interface org.bukkit.conversations.Prompt
END_OF_CONVERSATION
-
-
Constructor Summary
Constructors Constructor Description MessagePrompt()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description @Nullable Prompt
acceptInput(@NotNull ConversationContext context, @Nullable String input)
Accepts and ignores any user input, returning the next prompt in the prompt graph instead.boolean
blocksForInput(@NotNull ConversationContext context)
Message prompts never wait for user input before continuing.protected abstract @Nullable Prompt
getNextPrompt(@NotNull ConversationContext context)
Override this method to return the next prompt in the prompt graph.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.bukkit.conversations.Prompt
getPromptText
-
-
-
-
Method Detail
-
blocksForInput
public boolean blocksForInput(@NotNull @NotNull ConversationContext context)
Message prompts never wait for user input before continuing.- Specified by:
blocksForInput
in interfacePrompt
- Parameters:
context
- Context information about the conversation.- Returns:
- 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.- Specified by:
acceptInput
in interfacePrompt
- 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)
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.
-
-