org.bukkit.conversations
Class ConversationAbandonedEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.bukkit.conversations.ConversationAbandonedEvent
All Implemented Interfaces:
Serializable

public class ConversationAbandonedEvent
extends EventObject

ConversationAbandonedEvent contains information about an abandoned conversation.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ConversationAbandonedEvent(Conversation conversation)
           
ConversationAbandonedEvent(Conversation conversation, ConversationCanceller canceller)
           
 
Method Summary
 ConversationCanceller getCanceller()
          Gets the object that caused the conversation to be abandoned.
 ConversationContext getContext()
          Gets the abandoned conversation's conversation context.
 boolean gracefulExit()
          Indicates how the conversation was abandoned - naturally as part of the prompt chain or prematurely via a ConversationCanceller.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConversationAbandonedEvent

public ConversationAbandonedEvent(Conversation conversation)

ConversationAbandonedEvent

public ConversationAbandonedEvent(Conversation conversation,
                                  ConversationCanceller canceller)
Method Detail

getCanceller

public ConversationCanceller getCanceller()
Gets the object that caused the conversation to be abandoned.

Returns:
The object that abandoned the conversation.

getContext

public ConversationContext getContext()
Gets the abandoned conversation's conversation context.

Returns:
The abandoned conversation's conversation context.

gracefulExit

public boolean gracefulExit()
Indicates how the conversation was abandoned - naturally as part of the prompt chain or prematurely via a ConversationCanceller.

Returns:
True if the conversation is abandoned gracefully by a Prompt returning null or the next prompt. False of the conversations is abandoned prematurely by a ConversationCanceller.


Copyright © 2014. All rights reserved.