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