Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
Conversable.java
1 package org.bukkit.conversations;
2 
4 
5 /**
6  * The Conversable interface is used to indicate objects that can have
7  * conversations.
8  */
9 public interface Conversable {
10 
11  /**
12  * Tests to see of a Conversable object is actively engaged in a
13  * conversation.
14  *
15  * @return True if a conversation is in progress
16  */
17  public boolean isConversing();
18 
19  /**
20  * Accepts input into the active conversation. If no conversation is in
21  * progress, this method does nothing.
22  *
23  * @param input The input message into the conversation
24  */
25  public void acceptConversationInput(String input);
26 
27  /**
28  * Enters into a dialog with a Conversation object.
29  *
30  * @param conversation The conversation to begin
31  * @return True if the conversation should proceed, false if it has been
32  * enqueued
33  */
34  public boolean beginConversation(Conversation conversation);
35 
36  /**
37  * Abandons an active conversation.
38  *
39  * @param conversation The conversation to abandon
40  */
41  public void abandonConversation(Conversation conversation);
42 
43  /**
44  * Abandons an active conversation.
45  *
46  * @param conversation The conversation to abandon
47  * @param details Details about why the conversation was abandoned
48  */
49  public void abandonConversation(Conversation conversation, ConversationAbandonedEvent details);
50 
51  /**
52  * Sends this sender a message raw
53  *
54  * @param message Message to be displayed
55  */
56  public void sendRawMessage(String message);
57 }
void abandonConversation(Conversation conversation)
void sendRawMessage(String message)
boolean beginConversation(Conversation conversation)
void acceptConversationInput(String input)