<dd><code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Cloneable.html"title="class or interface in java.lang"class="external-link">Cloneable</a></code></dd>
</dl>
<dlclass="notes">
<dt>All Known Implementing Classes:</dt>
<dd><code><ahref="ExactMatchConversationCanceller.html"title="class in org.bukkit.conversations">ExactMatchConversationCanceller</a></code>, <code><ahref="InactivityConversationCanceller.html"title="class in org.bukkit.conversations">InactivityConversationCanceller</a></code>, <code><ahref="ManuallyAbandonedConversationCanceller.html"title="class in org.bukkit.conversations">ManuallyAbandonedConversationCanceller</a></code></dd>
extends <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Cloneable.html"title="class or interface in java.lang"class="external-link">Cloneable</a></span></div>
<divclass="block">A ConversationCanceller is a class that cancels an active <ahref="Conversation.html"title="class in org.bukkit.conversations"><code>Conversation</code></a>. A Conversation can have more than one ConversationCanceller.</div>
<divclass="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="#cancelBasedOnInput(org.bukkit.conversations.ConversationContext,java.lang.String)"class="member-name-link">cancelBasedOnInput</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="ConversationContext.html"title="class in org.bukkit.conversations">ConversationContext</a> context,
<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="block">Cancels a conversation based on user input.</div>
</div>
<divclass="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><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="ConversationCanceller.html"title="interface in org.bukkit.conversations">ConversationCanceller</a></code></div>
<divclass="block">Allows the <ahref="ConversationFactory.html"title="class in org.bukkit.conversations"><code>ConversationFactory</code></a> to duplicate this
ConversationCanceller when creating a new <ahref="Conversation.html"title="class in org.bukkit.conversations"><code>Conversation</code></a>.</div>
<divclass="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="#setConversation(org.bukkit.conversations.Conversation)"class="member-name-link">setConversation</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="Conversation.html"title="class in org.bukkit.conversations">Conversation</a> conversation)</code></div>
<divclass="member-signature"><spanclass="return-type">void</span> <spanclass="element-name">setConversation</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="Conversation.html"title="class in org.bukkit.conversations">Conversation</a> conversation)</span></div>
<divclass="block">Sets the conversation this ConversationCanceller can optionally cancel.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>conversation</code> - A conversation.</dd>
<divclass="member-signature"><spanclass="return-type">boolean</span> <spanclass="element-name">cancelBasedOnInput</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="ConversationContext.html"title="class in org.bukkit.conversations">ConversationContext</a> context,
<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">Cancels a conversation based on user input.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>context</code> - Context information about the conversation.</dd>
<dd><code>input</code> - The input text from the user.</dd>
<dt>Returns:</dt>
<dd>True to cancel the conversation, False otherwise.</dd>
</dl>
</section>
</li>
<li>
<sectionclass="detail"id="clone()">
<h3>clone</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="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="ConversationCanceller.html"title="interface in org.bukkit.conversations">ConversationCanceller</a></span> <spanclass="element-name">clone</span>()</div>
<divclass="block">Allows the <ahref="ConversationFactory.html"title="class in org.bukkit.conversations"><code>ConversationFactory</code></a> to duplicate this
ConversationCanceller when creating a new <ahref="Conversation.html"title="class in org.bukkit.conversations"><code>Conversation</code></a>.
<p>
Implementing this method should reset any internal object state.</div>