Package org.bukkit.conversations
Class ConversationAbandonedEvent
java.lang.Object
java.util.EventObject
org.bukkit.conversations.ConversationAbandonedEvent
- All Implemented Interfaces:
Serializable
Deprecated, for removal: This API element is subject to removal in a future version.
ConversationAbandonedEvent contains information about an abandoned
conversation.
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorsConstructorDescriptionConversationAbandonedEvent
(@NotNull Conversation conversation) Deprecated, for removal: This API element is subject to removal in a future version.ConversationAbandonedEvent
(@NotNull Conversation conversation, @Nullable ConversationCanceller canceller) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated, for removal: This API element is subject to removal in a future version.Gets the object that caused the conversation to be abandoned.Deprecated, for removal: This API element is subject to removal in a future version.Gets the abandoned conversation's conversation context.boolean
Deprecated, for removal: This API element is subject to removal in a future version.Indicates how the conversation was abandoned - naturally as part of the prompt chain or prematurely via aConversationCanceller
.Methods inherited from class java.util.EventObject
getSource, toString
-
Constructor Details
-
ConversationAbandonedEvent
Deprecated, for removal: This API element is subject to removal in a future version. -
ConversationAbandonedEvent
public ConversationAbandonedEvent(@NotNull @NotNull Conversation conversation, @Nullable @Nullable ConversationCanceller canceller) Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
getCanceller
Deprecated, for removal: This API element is subject to removal in a future version.Gets the object that caused the conversation to be abandoned.- Returns:
- The object that abandoned the conversation.
-
getContext
Deprecated, for removal: This API element is subject to removal in a future version.Gets the abandoned conversation's conversation context.- Returns:
- The abandoned conversation's conversation context.
-
gracefulExit
public boolean gracefulExit()Deprecated, for removal: This API element is subject to removal in a future version.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.
-
AsyncChatEvent
or alternatively usingDialog
to get user input.