Package org.bukkit.conversations
Interface Conversable
- All Known Subinterfaces:
ConsoleCommandSender,Player
public interface Conversable
The Conversable interface is used to indicate objects that can have
conversations.
-
Method Summary
Modifier and Type Method Description voidabandonConversation(Conversation conversation)Abandons an active conversation.voidabandonConversation(Conversation conversation, ConversationAbandonedEvent details)Abandons an active conversation.voidacceptConversationInput(java.lang.String input)Accepts input into the active conversation.booleanbeginConversation(Conversation conversation)Enters into a dialog with a Conversation object.booleanisConversing()Tests to see of a Conversable object is actively engaged in a conversation.voidsendRawMessage(java.lang.String message)Sends this sender a message raw
-
Method Details
-
isConversing
boolean isConversing()Tests to see of a Conversable object is actively engaged in a conversation.- Returns:
- True if a conversation is in progress
-
acceptConversationInput
void acceptConversationInput(java.lang.String input)Accepts input into the active conversation. If no conversation is in progress, this method does nothing.- Parameters:
input- The input message into the conversation
-
beginConversation
Enters into a dialog with a Conversation object.- Parameters:
conversation- The conversation to begin- Returns:
- True if the conversation should proceed, false if it has been enqueued
-
abandonConversation
Abandons an active conversation.- Parameters:
conversation- The conversation to abandon
-
abandonConversation
Abandons an active conversation.- Parameters:
conversation- The conversation to abandondetails- Details about why the conversation was abandoned
-
sendRawMessage
void sendRawMessage(java.lang.String message)Sends this sender a message raw- Parameters:
message- Message to be displayed
-