接口的使用
org.bukkit.conversations.ConversationCanceller
使用ConversationCanceller的程序包
-
org.bukkit.conversations中ConversationCanceller的使用
修饰符和类型类说明classExactMatchConversationCanceller 会在用户输入精确匹配的字符串时取消对话。classInactivityConversationCanceller 会在用户一段时间不活动后取消Conversation。classManuallyAbandonedConversationCanceller 仅用作ConversationAbandonedEvent的一部分, 以指示对话是通过编程方式调用其 abandon() 方法手动放弃的。类型参数类型为ConversationCanceller的org.bukkit.conversations中的字段修饰符和类型字段说明protected List<ConversationCanceller>Conversation.cancellersprotected List<ConversationCanceller>ConversationFactory.cancellers修饰符和类型方法说明ConversationCanceller.clone()允许某一ConversationFactory在创建一个新Conversation时 复制这个ConversationCanceller.ExactMatchConversationCanceller.clone()InactivityConversationCanceller.clone()ManuallyAbandonedConversationCanceller.clone()ConversationAbandonedEvent.getCanceller()获取终止该会话的ConversationCanceller.返回变量类型为ConversationCanceller的类型的org.bukkit.conversations中的方法修饰符和类型方法说明ConversationFactory.withConversationCanceller(@NotNull ConversationCanceller canceller) 将ConversationCanceller添加到构造的对话中。限定符构造器说明ConversationAbandonedEvent(@NotNull Conversation conversation, @Nullable ConversationCanceller canceller)