Package org.bukkit.conversations
Class ConversationAbandonedEvent
java.lang.Object
java.util.EventObject
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
-
Constructor Summary
Constructors Constructor Description ConversationAbandonedEvent(Conversation conversation)
ConversationAbandonedEvent(Conversation conversation, ConversationCanceller canceller)
-
Method Summary
Modifier and Type Method Description 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 aConversationCanceller
.
-
Constructor Details
-
ConversationAbandonedEvent
-
ConversationAbandonedEvent
public ConversationAbandonedEvent(@NotNull Conversation conversation, @Nullable ConversationCanceller canceller)
-
-
Method Details
-
getCanceller
Gets the object that caused the conversation to be abandoned.- Returns:
- The object that abandoned the conversation.
-
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 aConversationCanceller
.- 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.
-