Class ConversationAbandonedEvent

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

@Deprecated(forRemoval=true) public class ConversationAbandonedEvent extends EventObject
Deprecated, for removal: This API element is subject to removal in a future version.
The conversation API has been deprecated for removal. This system does not support component based messages and has been slowly losing functionality over the years as Minecraft has changed that this API can not adapt to. It is recommended you instead manually listen to the AsyncChatEvent or alternatively using Dialog to get user input.
ConversationAbandonedEvent contains information about an abandoned conversation.
See Also:
  • Constructor Details

  • Method Details

    • getCanceller

      @Nullable public @Nullable ConversationCanceller 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

      @NotNull public @NotNull ConversationContext 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 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.