|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.bukkit.conversations.ExactMatchConversationCanceller
public class ExactMatchConversationCanceller
An ExactMatchConversationCanceller cancels a conversation if the user enters an exact input string
Constructor Summary | |
---|---|
ExactMatchConversationCanceller(String escapeSequence)
Builds an ExactMatchConversationCanceller. |
Method Summary | |
---|---|
boolean |
cancelBasedOnInput(ConversationContext context,
String input)
Cancels a conversation based on user input. |
ConversationCanceller |
clone()
Allows the ConversationFactory to duplicate this ConversationCanceller when creating a new Conversation . |
void |
setConversation(Conversation conversation)
Sets the conversation this ConversationCanceller can optionally cancel. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ExactMatchConversationCanceller(String escapeSequence)
escapeSequence
- The string that, if entered by the user, will cancel the conversation.Method Detail |
---|
public void setConversation(Conversation conversation)
ConversationCanceller
setConversation
in interface ConversationCanceller
conversation
- A conversation.public boolean cancelBasedOnInput(ConversationContext context, String input)
ConversationCanceller
cancelBasedOnInput
in interface ConversationCanceller
context
- Context information about the conversation.input
- The input text from the user.
public ConversationCanceller clone()
ConversationCanceller
ConversationFactory
to duplicate this ConversationCanceller when creating a new Conversation
.
Implementing this method should reset any internal object state.
clone
in interface ConversationCanceller
clone
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |