类 RegexPrompt
java.lang.Object
org.bukkit.conversations.ValidatingPrompt
org.bukkit.conversations.RegexPrompt
RegexPrompt 是任何需要通过正则表达式验证输入的提示的基类。
-
字段概要
从接口继承的字段 org.bukkit.conversations.Prompt
END_OF_CONVERSATION -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明protected booleanisInputValid(@NotNull ConversationContext context, @NotNull String input) 覆盖此方法以检查玩家输入的有效性。从类继承的方法 org.bukkit.conversations.ValidatingPrompt
acceptInput, acceptValidatedInput, blocksForInput, getFailedValidationText从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 org.bukkit.conversations.Prompt
getPromptText
-
构造器详细资料
-
RegexPrompt
-
RegexPrompt
-
-
方法详细资料
-
isInputValid
protected boolean isInputValid(@NotNull @NotNull ConversationContext context, @NotNull @NotNull String input) 从类复制的说明:ValidatingPrompt覆盖此方法以检查玩家输入的有效性。原文: Override this method to check the validity of the player's input.
- 指定者:
isInputValid在类中ValidatingPrompt- 参数:
context- 关于对话的上下文信息。input- 玩家的原始控制台输入。- 返回:
- 根据输入的有效性返回 true 或 false。
-