Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
FakeConversable.java
1 package org.bukkit.conversations;
2 
3 import org.bukkit.Server;
7 import org.bukkit.plugin.Plugin;
8 
9 import java.util.Set;
10 
11 /**
12  */
13 public class FakeConversable implements Conversable {
14  public String lastSentMessage;
15  public Conversation begunConversation;
16  public Conversation abandonedConverstion;
17  public ConversationAbandonedEvent abandonedConversationEvent;
18 
19  public boolean isConversing() {
20  return false;
21  }
22 
23  public void acceptConversationInput(String input) {
24 
25  }
26 
27  public boolean beginConversation(Conversation conversation) {
28  begunConversation = conversation;
29  conversation.outputNextPrompt();
30  return true;
31  }
32 
33  public void abandonConversation(Conversation conversation) {
34  abandonedConverstion = conversation;
35  }
36 
37  public void abandonConversation(Conversation conversation, ConversationAbandonedEvent details) {
38  abandonedConverstion = conversation;
39  abandonedConversationEvent = details;
40  }
41 
42  public void sendRawMessage(String message) {
43  lastSentMessage = message;
44  }
45 
46  public Server getServer() {
47  return null;
48  }
49 
50  public String getName() {
51  return null;
52  }
53 
54  public boolean isPermissionSet(String name) {
55  return false;
56  }
57 
58  public boolean isPermissionSet(Permission perm) {
59  return false;
60  }
61 
62  public boolean hasPermission(String name) {
63  return false;
64  }
65 
66  public boolean hasPermission(Permission perm) {
67  return false;
68  }
69 
70  public PermissionAttachment addAttachment(Plugin plugin, String name, boolean value) {
71  return null;
72  }
73 
74  public PermissionAttachment addAttachment(Plugin plugin) {
75  return null;
76  }
77 
78  public PermissionAttachment addAttachment(Plugin plugin, String name, boolean value, int ticks) {
79  return null;
80  }
81 
82  public PermissionAttachment addAttachment(Plugin plugin, int ticks) {
83  return null;
84  }
85 
86  public void removeAttachment(PermissionAttachment attachment) {
87 
88  }
89 
90  public void recalculatePermissions() {
91 
92  }
93 
94  public Set<PermissionAttachmentInfo> getEffectivePermissions() {
95  return null;
96  }
97 
98  public boolean isOp() {
99  return false;
100  }
101 
102  public void setOp(boolean value) {
103 
104  }
105 }
boolean beginConversation(Conversation conversation)
void abandonConversation(Conversation conversation, ConversationAbandonedEvent details)
void abandonConversation(Conversation conversation)