Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
org.bukkit.conversations.MessagePrompt Class Referenceabstract
Inheritance diagram for org.bukkit.conversations.MessagePrompt:
org.bukkit.conversations.Prompt

Public Member Functions

boolean blocksForInput (ConversationContext context)
 
Prompt acceptInput (ConversationContext context, String input)
 
- Public Member Functions inherited from org.bukkit.conversations.Prompt
String getPromptText (ConversationContext context)
 

Protected Member Functions

abstract Prompt getNextPrompt (ConversationContext context)
 

Additional Inherited Members

- Static Public Attributes inherited from org.bukkit.conversations.Prompt
static final Prompt END_OF_CONVERSATION = null
 

Detailed Description

MessagePrompt is the base class for any prompt that only displays a message to the user and requires no input.

Definition at line 7 of file MessagePrompt.java.

Member Function Documentation

Prompt org.bukkit.conversations.MessagePrompt.acceptInput ( ConversationContext  context,
String  input 
)

Accepts and ignores any user input, returning the next prompt in the prompt graph instead.

Parameters
contextContext information about the conversation.
inputIgnored.
Returns
The next prompt in the prompt graph.

Implements org.bukkit.conversations.Prompt.

Definition at line 31 of file MessagePrompt.java.

References org.bukkit.conversations.MessagePrompt.getNextPrompt().

31  {
32  return getNextPrompt(context);
33  }
abstract Prompt getNextPrompt(ConversationContext context)
boolean org.bukkit.conversations.MessagePrompt.blocksForInput ( ConversationContext  context)

Message prompts never wait for user input before continuing.

Parameters
contextContext information about the conversation.
Returns
Always false.

Implements org.bukkit.conversations.Prompt.

Definition at line 19 of file MessagePrompt.java.

19  {
20  return false;
21  }
abstract Prompt org.bukkit.conversations.MessagePrompt.getNextPrompt ( ConversationContext  context)
abstractprotected

Override this method to return the next prompt in the prompt graph.

Parameters
contextContext information about the conversation.
Returns
The next prompt in the prompt graph.

Referenced by org.bukkit.conversations.MessagePrompt.acceptInput().


The documentation for this class was generated from the following file: