<divclass="inheritance"title="Inheritance Tree"><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html"title="class or interface in java.lang"class="external-link">java.lang.Object</a>
<divclass="type-signature"><spanclass="modifiers">public class </span><spanclass="element-name type-name-label">Conversation</span>
<spanclass="extends-implements">extends <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html"title="class or interface in java.lang"class="external-link">Object</a></span></div>
<divclass="block">The Conversation class is responsible for tracking the current state of a
conversation, displaying prompts to the user, and dispatching the user's
response to the appropriate place. Conversation objects are not typically
instantiated directly. Instead a <ahref="ConversationFactory.html"title="class in org.bukkit.conversations"><code>ConversationFactory</code></a> is used to
construct identical conversations on demand.
<p>
Conversation flow consists of a directed graph of <ahref="Prompt.html"title="interface in org.bukkit.conversations"><code>Prompt</code></a> objects.
Each time a prompt gets input from the user, it must return the next prompt
in the graph. Since each Prompt chooses the next Prompt, complex
conversation trees can be implemented where the nature of the player's
response directs the flow of the conversation.
<p>
Each conversation has a <ahref="ConversationPrefix.html"title="interface in org.bukkit.conversations"><code>ConversationPrefix</code></a> that prepends all output
from the conversation to the player. The ConversationPrefix can be used to
display the plugin name or conversation status as the conversation evolves.
<p>
Each conversation has a timeout measured in the number of inactive seconds
to wait before abandoning the conversation. If the inactivity timeout is
reached, the conversation is abandoned and the user's incoming and outgoing
chat is returned to normal.
<p>
You should not construct a conversation manually. Instead, use the <ahref="ConversationFactory.html"title="class in org.bukkit.conversations"><code>ConversationFactory</code></a> for access to all available options.</div>
<divclass="col-second even-row-color"><code><ahref="Conversation.ConversationState.html"class="type-name-link"title="enum class in org.bukkit.conversations">Conversation.ConversationState</a></code></div>
<divclass="col-last even-row-color"> </div>
</div>
</section>
</li>
<!-- =========== FIELD SUMMARY =========== -->
<li>
<sectionclass="field-summary"id="field-summary">
<h2>Field Summary</h2>
<divclass="caption"><span>Fields</span></div>
<divclass="summary-table three-column-summary">
<divclass="table-header col-first">Modifier and Type</div>
<divclass="col-first even-row-color"><code>protected <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/List.html"title="class or interface in java.util"class="external-link">List</a><<ahref="ConversationAbandonedListener.html"title="interface in org.bukkit.conversations">ConversationAbandonedListener</a>></code></div>
<divclass="col-first odd-row-color"><code>protected <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/List.html"title="class or interface in java.util"class="external-link">List</a><<ahref="ConversationCanceller.html"title="interface in org.bukkit.conversations">ConversationCanceller</a>></code></div>
<divclass="col-first even-row-color"><code>protected <ahref="ConversationContext.html"title="class in org.bukkit.conversations">ConversationContext</a></code></div>
<divclass="col-first even-row-color"><code>protected <ahref="ConversationPrefix.html"title="interface in org.bukkit.conversations">ConversationPrefix</a></code></div>
<divclass="col-constructor-name even-row-color"><code><ahref="#%3Cinit%3E(org.bukkit.plugin.Plugin,org.bukkit.conversations.Conversable,org.bukkit.conversations.Prompt)"class="member-name-link">Conversation</a><wbr>(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a><ahref="../plugin/Plugin.html"title="interface in org.bukkit.plugin">Plugin</a> plugin,
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Conversable.html"title="interface in org.bukkit.conversations">Conversable</a> forWhom,
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a><ahref="Prompt.html"title="interface in org.bukkit.conversations">Prompt</a> firstPrompt)</code></div>
<divclass="col-last even-row-color">
<divclass="block">Initializes a new Conversation.</div>
</div>
<divclass="col-constructor-name odd-row-color"><code><ahref="#%3Cinit%3E(org.bukkit.plugin.Plugin,org.bukkit.conversations.Conversable,org.bukkit.conversations.Prompt,java.util.Map)"class="member-name-link">Conversation</a><wbr>(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a><ahref="../plugin/Plugin.html"title="interface in org.bukkit.plugin">Plugin</a> plugin,
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Conversable.html"title="interface in org.bukkit.conversations">Conversable</a> forWhom,
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a><ahref="Prompt.html"title="interface in org.bukkit.conversations">Prompt</a> firstPrompt,
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Map.html"title="class or interface in java.util"class="external-link">Map</a><<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html"title="class or interface in java.lang"class="external-link">Object</a>,<wbr><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html"title="class or interface in java.lang"class="external-link">Object</a>> initialSessionData)</code></div>
<divclass="col-last odd-row-color">
<divclass="block">Initializes a new Conversation.</div>
<divclass="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="#abandon(org.bukkit.conversations.ConversationAbandonedEvent)"class="member-name-link">abandon</a><wbr>(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="ConversationAbandonedEvent.html"title="class in org.bukkit.conversations">ConversationAbandonedEvent</a> details)</code></div>
<divclass="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="#acceptInput(java.lang.String)"class="member-name-link">acceptInput</a><wbr>(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a> input)</code></div>
<divclass="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="#addConversationAbandonedListener(org.bukkit.conversations.ConversationAbandonedListener)"class="member-name-link">addConversationAbandonedListener</a><wbr>(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="ConversationAbandonedListener.html"title="interface in org.bukkit.conversations">ConversationAbandonedListener</a> listener)</code></div>
<divclass="block">Adds a <ahref="ConversationAbandonedListener.html"title="interface in org.bukkit.conversations"><code>ConversationAbandonedListener</code></a>.</div>
<divclass="block">Displays the first prompt of this conversation and begins redirecting
the user's chat responses.</div>
</div>
<divclass="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/List.html"title="class or interface in java.util"class="external-link">List</a><<ahref="ConversationCanceller.html"title="interface in org.bukkit.conversations">ConversationCanceller</a>></code></div>
<divclass="block">Gets the list of <ahref="ConversationCanceller.html"title="interface in org.bukkit.conversations"><code>ConversationCanceller</code></a>s</div>
</div>
<divclass="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="ConversationContext.html"title="class in org.bukkit.conversations">ConversationContext</a></code></div>
<divclass="block">Returns the Conversation's <ahref="ConversationContext.html"title="class in org.bukkit.conversations"><code>ConversationContext</code></a>.</div>
</div>
<divclass="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Conversable.html"title="interface in org.bukkit.conversations">Conversable</a></code></div>
<divclass="block">Gets the entity for whom this conversation is mediating.</div>
</div>
<divclass="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="ConversationPrefix.html"title="interface in org.bukkit.conversations">ConversationPrefix</a></code></div>
<divclass="block">Gets the <ahref="ConversationPrefix.html"title="interface in org.bukkit.conversations"><code>ConversationPrefix</code></a> that prepends all output from this
conversation.</div>
</div>
<divclass="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Conversation.ConversationState.html"title="enum class in org.bukkit.conversations">Conversation.ConversationState</a></code></div>
<divclass="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="#removeConversationAbandonedListener(org.bukkit.conversations.ConversationAbandonedListener)"class="member-name-link">removeConversationAbandonedListener</a><wbr>(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="ConversationAbandonedListener.html"title="interface in org.bukkit.conversations">ConversationAbandonedListener</a> listener)</code></div>
<divclass="block">Removes a <ahref="ConversationAbandonedListener.html"title="interface in org.bukkit.conversations"><code>ConversationAbandonedListener</code></a>.</div>
<divclass="block">Sets the status of local echo for this conversation.</div>
</div>
</div>
</div>
</div>
<divclass="inherited-list">
<h3id="methods-inherited-from-class-java.lang.Object">Methods inherited from class java.lang.<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html"title="class or interface in java.lang"class="external-link">Object</a></h3>
<code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#clone()"title="class or interface in java.lang"class="external-link">clone</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"title="class or interface in java.lang"class="external-link">equals</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#finalize()"title="class or interface in java.lang"class="external-link">finalize</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#getClass()"title="class or interface in java.lang"class="external-link">getClass</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#hashCode()"title="class or interface in java.lang"class="external-link">hashCode</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#notify()"title="class or interface in java.lang"class="external-link">notify</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#notifyAll()"title="class or interface in java.lang"class="external-link">notifyAll</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#toString()"title="class or interface in java.lang"class="external-link">toString</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#wait()"title="class or interface in java.lang"class="external-link">wait</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#wait(long)"title="class or interface in java.lang"class="external-link">wait</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#wait(long,int)"title="class or interface in java.lang"class="external-link">wait</a></code></div>
</section>
</li>
</ul>
</section>
<sectionclass="details">
<ulclass="details-list">
<!-- ============ FIELD DETAIL =========== -->
<li>
<sectionclass="field-details"id="field-detail">
<h2>Field Details</h2>
<ulclass="member-list">
<li>
<sectionclass="detail"id="currentPrompt">
<h3>currentPrompt</h3>
<divclass="member-signature"><spanclass="modifiers">protected</span> <spanclass="return-type"><ahref="Prompt.html"title="interface in org.bukkit.conversations">Prompt</a></span> <spanclass="element-name">currentPrompt</span></div>
</section>
</li>
<li>
<sectionclass="detail"id="context">
<h3>context</h3>
<divclass="member-signature"><spanclass="modifiers">protected</span> <spanclass="return-type"><ahref="ConversationContext.html"title="class in org.bukkit.conversations">ConversationContext</a></span> <spanclass="element-name">context</span></div>
<divclass="member-signature"><spanclass="modifiers">protected</span> <spanclass="return-type"><ahref="ConversationPrefix.html"title="interface in org.bukkit.conversations">ConversationPrefix</a></span> <spanclass="element-name">prefix</span></div>
</section>
</li>
<li>
<sectionclass="detail"id="cancellers">
<h3>cancellers</h3>
<divclass="member-signature"><spanclass="modifiers">protected</span> <spanclass="return-type"><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/List.html"title="class or interface in java.util"class="external-link">List</a><<ahref="ConversationCanceller.html"title="interface in org.bukkit.conversations">ConversationCanceller</a>></span> <spanclass="element-name">cancellers</span></div>
</section>
</li>
<li>
<sectionclass="detail"id="abandonedListeners">
<h3>abandonedListeners</h3>
<divclass="member-signature"><spanclass="modifiers">protected</span> <spanclass="return-type"><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/List.html"title="class or interface in java.util"class="external-link">List</a><<ahref="ConversationAbandonedListener.html"title="interface in org.bukkit.conversations">ConversationAbandonedListener</a>></span> <spanclass="element-name">abandonedListeners</span></div>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="element-name">Conversation</span><wbr><spanclass="parameters">(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a><ahref="../plugin/Plugin.html"title="interface in org.bukkit.plugin">Plugin</a> plugin,
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Conversable.html"title="interface in org.bukkit.conversations">Conversable</a> forWhom,
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a><ahref="Prompt.html"title="interface in org.bukkit.conversations">Prompt</a> firstPrompt)</span></div>
<divclass="block">Initializes a new Conversation.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>plugin</code> - The plugin that owns this conversation.</dd>
<dd><code>forWhom</code> - The entity for whom this conversation is mediating.</dd>
<dd><code>firstPrompt</code> - The first prompt in the conversation graph.</dd>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="element-name">Conversation</span><wbr><spanclass="parameters">(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a><ahref="../plugin/Plugin.html"title="interface in org.bukkit.plugin">Plugin</a> plugin,
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Conversable.html"title="interface in org.bukkit.conversations">Conversable</a> forWhom,
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a><ahref="Prompt.html"title="interface in org.bukkit.conversations">Prompt</a> firstPrompt,
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Map.html"title="class or interface in java.util"class="external-link">Map</a><<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html"title="class or interface in java.lang"class="external-link">Object</a>,<wbr><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html"title="class or interface in java.lang"class="external-link">Object</a>> initialSessionData)</span></div>
<divclass="block">Initializes a new Conversation.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>plugin</code> - The plugin that owns this conversation.</dd>
<dd><code>forWhom</code> - The entity for whom this conversation is mediating.</dd>
<dd><code>firstPrompt</code> - The first prompt in the conversation graph.</dd>
<dd><code>initialSessionData</code> - Any initial values to put in the conversation
context sessionData map.</dd>
</dl>
</section>
</li>
</ul>
</section>
</li>
<!-- ============ METHOD DETAIL ========== -->
<li>
<sectionclass="method-details"id="method-detail">
<h2>Method Details</h2>
<ulclass="member-list">
<li>
<sectionclass="detail"id="getForWhom()">
<h3>getForWhom</h3>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
</span><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Conversable.html"title="interface in org.bukkit.conversations">Conversable</a></span> <spanclass="element-name">getForWhom</span>()</div>
<divclass="block">Gets the entity for whom this conversation is mediating.</div>
<divclass="block">Sets the status of local echo for this conversation. If local echo is
enabled, any text submitted to a conversation gets echoed back into the
submitter's chat window.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>localEchoEnabled</code> - The status of local echo.</dd>
</dl>
</section>
</li>
<li>
<sectionclass="detail"id="getPrefix()">
<h3>getPrefix</h3>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
</span><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="ConversationPrefix.html"title="interface in org.bukkit.conversations">ConversationPrefix</a></span> <spanclass="element-name">getPrefix</span>()</div>
<divclass="block">Gets the <ahref="ConversationPrefix.html"title="interface in org.bukkit.conversations"><code>ConversationPrefix</code></a> that prepends all output from this
conversation.</div>
<dlclass="notes">
<dt>Returns:</dt>
<dd>The ConversationPrefix in use.</dd>
</dl>
</section>
</li>
<li>
<sectionclass="detail"id="getCancellers()">
<h3>getCancellers</h3>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
</span><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/List.html"title="class or interface in java.util"class="external-link">List</a><<ahref="ConversationCanceller.html"title="interface in org.bukkit.conversations">ConversationCanceller</a>></span> <spanclass="element-name">getCancellers</span>()</div>
<divclass="block">Gets the list of <ahref="ConversationCanceller.html"title="interface in org.bukkit.conversations"><code>ConversationCanceller</code></a>s</div>
<dlclass="notes">
<dt>Returns:</dt>
<dd>The list.</dd>
</dl>
</section>
</li>
<li>
<sectionclass="detail"id="getContext()">
<h3>getContext</h3>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
</span><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="ConversationContext.html"title="class in org.bukkit.conversations">ConversationContext</a></span> <spanclass="element-name">getContext</span>()</div>
<divclass="block">Returns the Conversation's <ahref="ConversationContext.html"title="class in org.bukkit.conversations"><code>ConversationContext</code></a>.</div>
<divclass="block">Displays the first prompt of this conversation and begins redirecting
the user's chat responses.</div>
</section>
</li>
<li>
<sectionclass="detail"id="getState()">
<h3>getState</h3>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
</span><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Conversation.ConversationState.html"title="enum class in org.bukkit.conversations">Conversation.ConversationState</a></span> <spanclass="element-name">getState</span>()</div>
<divclass="block">Returns Returns the current state of the conversation.</div>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="return-type">void</span> <spanclass="element-name">acceptInput</span><wbr><spanclass="parameters">(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a> input)</span></div>
<divclass="block">Passes player input into the current prompt. The next prompt (as
determined by the current prompt) is then displayed to the user.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>input</code> - The user's chat text.</dd>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="return-type">void</span> <spanclass="element-name">addConversationAbandonedListener</span><wbr><spanclass="parameters">(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="ConversationAbandonedListener.html"title="interface in org.bukkit.conversations">ConversationAbandonedListener</a> listener)</span></div>
<divclass="block">Adds a <ahref="ConversationAbandonedListener.html"title="interface in org.bukkit.conversations"><code>ConversationAbandonedListener</code></a>.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>listener</code> - The listener to add.</dd>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="return-type">void</span> <spanclass="element-name">removeConversationAbandonedListener</span><wbr><spanclass="parameters">(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="ConversationAbandonedListener.html"title="interface in org.bukkit.conversations">ConversationAbandonedListener</a> listener)</span></div>
<divclass="block">Removes a <ahref="ConversationAbandonedListener.html"title="interface in org.bukkit.conversations"><code>ConversationAbandonedListener</code></a>.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>listener</code> - The listener to remove.</dd>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="return-type">void</span> <spanclass="element-name">abandon</span><wbr><spanclass="parameters">(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="ConversationAbandonedEvent.html"title="class in org.bukkit.conversations">ConversationAbandonedEvent</a> details)</span></div>
<divclass="block">Abandons and resets the current conversation. Restores the user's
normal chat behavior.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>details</code> - Details about why the conversation was abandoned</dd>