public abstract class RegexPrompt extends ValidatingPrompt
END_OF_CONVERSATION| Constructor and Description | 
|---|
RegexPrompt(Pattern pattern)  | 
RegexPrompt(String regex)  | 
| Modifier and Type | Method and Description | 
|---|---|
protected boolean | 
isInputValid(ConversationContext context,
            String input)
Override this method to check the validity of the player's input. 
 | 
acceptInput, acceptValidatedInput, blocksForInput, getFailedValidationTextclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetPromptTextpublic RegexPrompt(@NotNull
                   String regex)
public RegexPrompt(@NotNull
                   Pattern pattern)
protected boolean isInputValid(@NotNull
                               ConversationContext context,
                               @NotNull
                               String input)
ValidatingPromptisInputValid in class ValidatingPromptcontext - Context information about the conversation.input - The player's raw console input.Copyright © 2022. All rights reserved.