Package org.bukkit.conversations
Class 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.
-
Field Summary
Fields inherited from interface org.bukkit.conversations.Prompt
END_OF_CONVERSATION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionacceptInput(ConversationContext context, String input) Accepts and ignores any user input, returning the next prompt in the prompt graph instead.booleanblocksForInput(ConversationContext context) Message prompts never wait for user input before continuing.protected abstract PromptgetNextPrompt(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, waitMethods inherited from interface org.bukkit.conversations.Prompt
getPromptText
-
Constructor Details
-
MessagePrompt
public MessagePrompt()
-
-
Method Details
-
blocksForInput
Message prompts never wait for user input before continuing.- Specified by:
blocksForInputin interfacePrompt- Parameters:
context- Context information about the conversation.- Returns:
- Always false.
-
acceptInput
Accepts and ignores any user input, returning the next prompt in the prompt graph instead.- Specified by:
acceptInputin interfacePrompt- Parameters:
context- Context information about the conversation.input- Ignored.- Returns:
- The next prompt in the prompt graph.
-
getNextPrompt
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.
-