![]() |
Bukkit
1.4.7-R1.0
|
PlayerNamePrompt is the base class for any prompt that requires the player to enter another player's name. More...
Inheritance diagram for org.bukkit.conversations.PlayerNamePrompt:
Collaboration diagram for org.bukkit.conversations.PlayerNamePrompt:Public Member Functions | |
| PlayerNamePrompt (Plugin plugin) | |
Public Member Functions inherited from org.bukkit.conversations.ValidatingPrompt | |
| ValidatingPrompt () | |
| Prompt | acceptInput (ConversationContext context, String input) |
| Accepts and processes input from the user and validates it. | |
| boolean | blocksForInput (ConversationContext context) |
| Ensures that the prompt waits for the user to provide input. | |
Public Member Functions inherited from org.bukkit.conversations.Prompt | |
| String | getPromptText (ConversationContext context) |
| Gets the text to display to the user when this prompt is first presented. | |
| boolean | blocksForInput (ConversationContext context) |
| Checks to see if this prompt implementation should wait for user input or immediately display the next prompt. | |
| Prompt | acceptInput (ConversationContext context, String input) |
| Accepts and processes input from the user. | |
Protected Member Functions | |
| boolean | isInputValid (ConversationContext context, String input) |
| Override this method to check the validity of the player's input. | |
| Prompt | acceptValidatedInput (ConversationContext context, String input) |
| Override this method to accept and processes the validated input from the user. | |
| abstract Prompt | acceptValidatedInput (ConversationContext context, Player input) |
| Override this method to perform some action with the user's player name response. | |
Protected Member Functions inherited from org.bukkit.conversations.ValidatingPrompt | |
| String | getFailedValidationText (ConversationContext context, String invalidInput) |
| Optionally override this method to display an additional message if the user enters an invalid input. | |
Additional Inherited Members | |
Static Public Attributes inherited from org.bukkit.conversations.Prompt | |
| static final Prompt | END_OF_CONVERSATION = null |
| A convenience constant for indicating the end of a conversation. | |
PlayerNamePrompt is the base class for any prompt that requires the player to enter another player's name.
Definition at line 9 of file PlayerNamePrompt.java.
| org.bukkit.conversations.PlayerNamePrompt.PlayerNamePrompt | ( | Plugin | plugin | ) |
Definition at line 12 of file PlayerNamePrompt.java.
|
protectedvirtual |
Override this method to accept and processes the validated input from the user.
Using the input, the next Prompt in the prompt graph should be returned.
| context | Context information about the conversation. |
| input | The validated input text from the user. |
Implements org.bukkit.conversations.ValidatingPrompt.
Definition at line 24 of file PlayerNamePrompt.java.
References org.bukkit.Server.getPlayer(), and org.bukkit.plugin.Plugin.getServer().
|
protectedpure virtual |
Override this method to perform some action with the user's player name response.
| context | Context information about the conversation. |
| input | The user's player name response. |
|
protectedvirtual |
Override this method to check the validity of the player's input.
| context | Context information about the conversation. |
| input | The player's raw console input. |
Implements org.bukkit.conversations.ValidatingPrompt.
Definition at line 18 of file PlayerNamePrompt.java.
References org.bukkit.Server.getPlayer(), and org.bukkit.plugin.Plugin.getServer().