类 ConversationAbandonedEvent

java.lang.Object
java.util.EventObject
org.bukkit.conversations.ConversationAbandonedEvent
所有已实现的接口:
Serializable

public class ConversationAbandonedEvent extends EventObject
ConversationAbandonedEvent包含一个被终止的会话的细节信息.
另请参阅:
  • 构造器详细资料

  • 方法详细资料

    • getCanceller

      public ConversationCanceller getCanceller()
      获取终止该会话的ConversationCanceller.

      原文:Gets the object that caused the conversation to be abandoned.

      返回:
      终止该会话的ConversationCanceller
    • getContext

      public ConversationContext getContext()
      获取这个被终止的会话的上下文.

      原文:Gets the abandoned conversation's conversation context.

      返回:
      被终止的对话的上下文
    • gracefulExit

      public boolean gracefulExit()
      指示该对话是怎样被终止的 - 在对话提示流程完成后自然终止 还是较早地通过ConversationCanceller终止.

      Indicates how the conversation was abandoned - naturally as part of the prompt chain or prematurely via a ConversationCanceller.

      返回:
      若会话是由于Prompt返回了空值或下一个prompt被优雅地终止返回true; 若会话是被ConversationCanceller终止的返回false.