Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
org.bukkit.conversations.FakeConversable Class Reference
Inheritance diagram for org.bukkit.conversations.FakeConversable:
org.bukkit.conversations.Conversable

Public Member Functions

boolean isConversing ()
 
void acceptConversationInput (String input)
 
boolean beginConversation (Conversation conversation)
 
void abandonConversation (Conversation conversation)
 
void abandonConversation (Conversation conversation, ConversationAbandonedEvent details)
 
void sendRawMessage (String message)
 
Server getServer ()
 
String getName ()
 
boolean isPermissionSet (String name)
 
boolean isPermissionSet (Permission perm)
 
boolean hasPermission (String name)
 
boolean hasPermission (Permission perm)
 
PermissionAttachment addAttachment (Plugin plugin, String name, boolean value)
 
PermissionAttachment addAttachment (Plugin plugin)
 
PermissionAttachment addAttachment (Plugin plugin, String name, boolean value, int ticks)
 
PermissionAttachment addAttachment (Plugin plugin, int ticks)
 
void removeAttachment (PermissionAttachment attachment)
 
void recalculatePermissions ()
 
Set< PermissionAttachmentInfogetEffectivePermissions ()
 
boolean isOp ()
 
void setOp (boolean value)
 

Public Attributes

String lastSentMessage
 
Conversation begunConversation
 
Conversation abandonedConverstion
 
ConversationAbandonedEvent abandonedConversationEvent
 

Detailed Description

Definition at line 13 of file FakeConversable.java.

Member Function Documentation

void org.bukkit.conversations.FakeConversable.abandonConversation ( Conversation  conversation)

Abandons an active conversation.

Parameters
conversationThe conversation to abandon

Implements org.bukkit.conversations.Conversable.

Definition at line 33 of file FakeConversable.java.

33  {
34  abandonedConverstion = conversation;
35  }
void org.bukkit.conversations.FakeConversable.abandonConversation ( Conversation  conversation,
ConversationAbandonedEvent  details 
)

Abandons an active conversation.

Parameters
conversationThe conversation to abandon
detailsDetails about why the conversation was abandoned

Implements org.bukkit.conversations.Conversable.

Definition at line 37 of file FakeConversable.java.

37  {
38  abandonedConverstion = conversation;
39  abandonedConversationEvent = details;
40  }
void org.bukkit.conversations.FakeConversable.acceptConversationInput ( String  input)

Accepts input into the active conversation. If no conversation is in progress, this method does nothing.

Parameters
inputThe input message into the conversation

Implements org.bukkit.conversations.Conversable.

Definition at line 23 of file FakeConversable.java.

23  {
24 
25  }
boolean org.bukkit.conversations.FakeConversable.beginConversation ( Conversation  conversation)

Enters into a dialog with a Conversation object.

Parameters
conversationThe conversation to begin
Returns
True if the conversation should proceed, false if it has been enqueued

Implements org.bukkit.conversations.Conversable.

Definition at line 27 of file FakeConversable.java.

References org.bukkit.conversations.Conversation.outputNextPrompt().

27  {
28  begunConversation = conversation;
29  conversation.outputNextPrompt();
30  return true;
31  }
boolean org.bukkit.conversations.FakeConversable.isConversing ( )

Tests to see of a Conversable object is actively engaged in a conversation.

Returns
True if a conversation is in progress

Implements org.bukkit.conversations.Conversable.

Definition at line 19 of file FakeConversable.java.

19  {
20  return false;
21  }
void org.bukkit.conversations.FakeConversable.sendRawMessage ( String  message)

Sends this sender a message raw

Parameters
messageMessage to be displayed

Implements org.bukkit.conversations.Conversable.

Definition at line 42 of file FakeConversable.java.

42  {
43  lastSentMessage = message;
44  }

The documentation for this class was generated from the following file: