接口的使用
org.bukkit.conversations.ConversationCanceller
使用ConversationCanceller的程序包
-
org.bukkit.conversations中ConversationCanceller的使用
修饰符和类型类说明classAn ExactMatchConversationCanceller cancels a conversation if the user enters an exact input stringclassAn InactivityConversationCanceller will cancel aConversationafter a period of inactivity by the user.classThe ManuallyAbandonedConversationCanceller is only used as part of aConversationAbandonedEventto indicate that the conversation was manually abandoned by programmatically calling the abandon() method on it.类型参数类型为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) Adds aConversationCancellerto constructed conversations.限定符构造器说明ConversationAbandonedEvent(@NotNull Conversation conversation, @Nullable ConversationCanceller canceller)