接口的使用
org.bukkit.conversations.ConversationCanceller
-
org.bukkit.conversations中ConversationCanceller的使用
修饰符和类型类说明class
An ExactMatchConversationCanceller cancels a conversation if the user enters an exact input stringclass
An InactivityConversationCanceller will cancel aConversation
after a period of inactivity by the user.class
The ManuallyAbandonedConversationCanceller is only used as part of aConversationAbandonedEvent
to indicate that the conversation was manually abandoned by programmatically calling the abandon() method on it.修饰符和类型字段说明protected List<ConversationCanceller>
Conversation.cancellers
protected List<ConversationCanceller>
ConversationFactory.cancellers
修饰符和类型方法说明ConversationCanceller.clone()
允许某一ConversationFactory
在创建一个新Conversation
时 复制这个ConversationCanceller.ExactMatchConversationCanceller.clone()
InactivityConversationCanceller.clone()
ManuallyAbandonedConversationCanceller.clone()
ConversationAbandonedEvent.getCanceller()
获取终止该会话的ConversationCanceller
.修饰符和类型方法说明ConversationFactory.withConversationCanceller
(@NotNull ConversationCanceller canceller) Adds aConversationCanceller
to constructed conversations.限定符构造器说明ConversationAbandonedEvent
(@NotNull Conversation conversation, @Nullable ConversationCanceller canceller)