Package org.bukkit.conversations
Interface Prompt
- All Superinterfaces:
- Cloneable
- All Known Implementing Classes:
- BooleanPrompt,- FixedSetPrompt,- MessagePrompt,- NumericPrompt,- PlayerNamePrompt,- RegexPrompt,- StringPrompt,- ValidatingPrompt
A Prompt is the main constituent of a 
Conversation. Each prompt
 displays text to the user and optionally waits for a user's response.
 Prompts are chained together into a directed graph that represents the
 conversation flow. To halt a conversation, END_OF_CONVERSATION is returned
 in liu of another Prompt object.- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final PromptA convenience constant for indicating the end of a conversation.
- 
Method SummaryModifier and TypeMethodDescriptionacceptInput(ConversationContext context, String input) Accepts and processes input from the user.booleanblocksForInput(ConversationContext context) Checks to see if this prompt implementation should wait for user input or immediately display the next prompt.getPromptText(ConversationContext context) Gets the text to display to the user when this prompt is first presented.
- 
Field Details- 
END_OF_CONVERSATIONA convenience constant for indicating the end of a conversation.
 
- 
- 
Method Details- 
getPromptTextGets the text to display to the user when this prompt is first presented.- Parameters:
- context- Context information about the conversation.
- Returns:
- The text to display.
 
- 
blocksForInputChecks to see if this prompt implementation should wait for user input or immediately display the next prompt.- Parameters:
- context- Context information about the conversation.
- Returns:
- If true, the Conversationwill wait for input before continuing. If false,acceptInput(ConversationContext, String)will be called immediately withnullinput.
 
- 
acceptInputAccepts and processes input from the user. Using the input, the next Prompt in the prompt graph is returned.- Parameters:
- context- Context information about the conversation.
- input- The input text from the user.
- Returns:
- The next Prompt in the prompt graph.
 
 
-