Class EldoConversation

java.lang.Object
org.bukkit.conversations.Conversation
de.eldoria.eldoutilities.conversation.EldoConversation

public class EldoConversation extends org.bukkit.conversations.Conversation
Wrapper for Conversation
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    Builder for a EldoConversation

    Nested classes/interfaces inherited from class org.bukkit.conversations.Conversation

    org.bukkit.conversations.Conversation.ConversationState
  • Field Summary

    Fields inherited from class org.bukkit.conversations.Conversation

    abandonedListeners, cancellers, context, currentPrompt, localEchoEnabled, modal, prefix
  • Constructor Summary

    Constructors
    Constructor
    Description
    EldoConversation(@Nullable org.bukkit.plugin.Plugin plugin, @NotNull org.bukkit.conversations.Conversable forWhom, @Nullable org.bukkit.conversations.Prompt firstPrompt, @NotNull Map<Object,Object> initialSessionData, net.kyori.adventure.text.Component pluginPrefix, String userPrefix)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Passes player input into the current prompt.
    builder(org.bukkit.plugin.Plugin plugin, org.bukkit.conversations.Conversable forWhom, org.bukkit.conversations.Prompt firstPrompt)
     
    void
    Displays the next user prompt and abandons the conversation if the next prompt is null.

    Methods inherited from class org.bukkit.conversations.Conversation

    abandon, abandon, addConversationAbandonedListener, begin, getCancellers, getContext, getForWhom, getPrefix, getState, isLocalEchoEnabled, isModal, removeConversationAbandonedListener, setLocalEchoEnabled

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • builder

      public static EldoConversation.Builder builder(org.bukkit.plugin.Plugin plugin, org.bukkit.conversations.Conversable forWhom, org.bukkit.conversations.Prompt firstPrompt)
    • acceptInput

      public void acceptInput(@NotNull @NotNull String input)
      Passes player input into the current prompt. The next prompt (as determined by the current prompt) is then displayed to the user.
      Overrides:
      acceptInput in class org.bukkit.conversations.Conversation
      Parameters:
      input - The user's chat text.
    • outputNextPrompt

      public void outputNextPrompt()
      Displays the next user prompt and abandons the conversation if the next prompt is null.
      Overrides:
      outputNextPrompt in class org.bukkit.conversations.Conversation