public abstract class PlayerNamePrompt extends ValidatingPrompt
END_OF_CONVERSATION
构造器和说明 |
---|
PlayerNamePrompt(Plugin plugin) |
限定符和类型 | 方法和说明 |
---|---|
protected abstract Prompt |
acceptValidatedInput(ConversationContext context,
Player input)
Override this method to perform some action with the user's player name
response.
|
protected Prompt |
acceptValidatedInput(ConversationContext context,
java.lang.String input)
Override this method to accept and processes the validated input from
the user.
|
protected boolean |
isInputValid(ConversationContext context,
java.lang.String input)
Override this method to check the validity of the player's input.
|
acceptInput, blocksForInput, getFailedValidationText
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPromptText
public PlayerNamePrompt(Plugin plugin)
protected boolean isInputValid(ConversationContext context, java.lang.String input)
ValidatingPrompt
isInputValid
在类中 ValidatingPrompt
context
- Context information about the conversation.input
- The player's raw console input.protected Prompt acceptValidatedInput(ConversationContext context, java.lang.String input)
ValidatingPrompt
acceptValidatedInput
在类中 ValidatingPrompt
context
- Context information about the conversation.input
- The validated input text from the user.protected abstract Prompt acceptValidatedInput(ConversationContext context, Player input)
context
- Context information about the conversation.input
- The user's player name response.Prompt
in the prompt graph.