Class EldoConversation
java.lang.Object
org.bukkit.conversations.Conversation
de.eldoria.eldoutilities.conversation.EldoConversation
Wrapper for
Conversation
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.conversations.Conversation
Conversation.ConversationState
-
Field Summary
Fields inherited from class org.bukkit.conversations.Conversation
abandonedListeners, cancellers, context, currentPrompt, localEchoEnabled, modal, prefix
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
acceptInput
(@NotNull String input) Passes player input into the current prompt.static EldoConversation.Builder
builder
(Plugin plugin, Conversable forWhom, 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
-
Constructor Details
-
EldoConversation
-
-
Method Details
-
builder
public static EldoConversation.Builder builder(Plugin plugin, Conversable forWhom, Prompt firstPrompt) -
acceptInput
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 classConversation
- 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 classConversation
-