本文整理汇总了Java中org.bukkit.conversations.ManuallyAbandonedConversationCanceller类的典型用法代码示例。如果您正苦于以下问题:Java ManuallyAbandonedConversationCanceller类的具体用法?Java ManuallyAbandonedConversationCanceller怎么用?Java ManuallyAbandonedConversationCanceller使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ManuallyAbandonedConversationCanceller类属于org.bukkit.conversations包,在下文中一共展示了ManuallyAbandonedConversationCanceller类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: abandonAllConversations
import org.bukkit.conversations.ManuallyAbandonedConversationCanceller; //导入依赖的package包/类
public synchronized void abandonAllConversations() {
LinkedList oldQueue = this.conversationQueue;
this.conversationQueue = new LinkedList();
Iterator var2 = oldQueue.iterator();
while (var2.hasNext()) {
Conversation conversation = (Conversation) var2.next();
try {
conversation.abandon(new ConversationAbandonedEvent(conversation, new ManuallyAbandonedConversationCanceller()));
} catch (Throwable var5) {
Bukkit.getLogger().log(Level.SEVERE, "Unexpected exception while abandoning a conversation", var5);
}
}
}
示例2: abandonAllConversations
import org.bukkit.conversations.ManuallyAbandonedConversationCanceller; //导入依赖的package包/类
public synchronized void abandonAllConversations() {
LinkedList<Conversation> oldQueue = conversationQueue;
conversationQueue = new LinkedList<Conversation>();
for(Conversation conversation : oldQueue) {
try {
conversation.abandon(new ConversationAbandonedEvent(conversation, new ManuallyAbandonedConversationCanceller()));
} catch (Throwable t) {
Bukkit.getLogger().log(Level.SEVERE, "Unexpected exception while abandoning a conversation", t);
}
}
}
示例3: abandonAllConversations
import org.bukkit.conversations.ManuallyAbandonedConversationCanceller; //导入依赖的package包/类
public synchronized void abandonAllConversations() {
LinkedList<Conversation> oldQueue = conversationQueue;
conversationQueue = new LinkedList<Conversation>();
for (Conversation conversation : oldQueue) {
try {
conversation.abandon(new ConversationAbandonedEvent(conversation, new ManuallyAbandonedConversationCanceller()));
} catch (Throwable t) {
Bukkit.getLogger().log(Level.SEVERE, "Unexpected exception while abandoning a conversation", t);
}
}
}
示例4: abandonAllConversations
import org.bukkit.conversations.ManuallyAbandonedConversationCanceller; //导入依赖的package包/类
public synchronized void abandonAllConversations() {
LinkedList<Conversation> oldQueue = conversationQueue;
conversationQueue = new LinkedList<Conversation>();
for(Conversation conversation : oldQueue) {
conversation.abandon(new ConversationAbandonedEvent(conversation, new ManuallyAbandonedConversationCanceller()));
}
}
示例5: abandonConversation
import org.bukkit.conversations.ManuallyAbandonedConversationCanceller; //导入依赖的package包/类
public void abandonConversation(Conversation conversation) {
conversationTracker.abandonConversation(conversation, new ConversationAbandonedEvent(conversation, new ManuallyAbandonedConversationCanceller()));
}
示例6: abandonConversation
import org.bukkit.conversations.ManuallyAbandonedConversationCanceller; //导入依赖的package包/类
public void abandonConversation(Conversation conversation) {
this.conversationTracker.abandonConversation(conversation, new ConversationAbandonedEvent(conversation, new ManuallyAbandonedConversationCanceller()));
}
示例7: abandonConversation
import org.bukkit.conversations.ManuallyAbandonedConversationCanceller; //导入依赖的package包/类
@Override
public void abandonConversation(Conversation conversation) {
conversationTracker.abandonConversation(conversation, new ConversationAbandonedEvent(conversation, new ManuallyAbandonedConversationCanceller()));
}