程序包 | 说明 |
---|---|
org.bukkit.conversations |
致力于简化玩家与插件的直接通信的类(玩家与插件的对话,典型的场景比如操作的确认、提供插件所需数据).
|
限定符和类型 | 类和说明 |
---|---|
class |
ExactMatchConversationCanceller
An ExactMatchConversationCanceller cancels a conversation if the user
enters an exact input string
|
class |
InactivityConversationCanceller
An InactivityConversationCanceller will cancel a
Conversation after
a period of inactivity by the user. |
class |
ManuallyAbandonedConversationCanceller
The ManuallyAbandonedConversationCanceller is only used as part of a
ConversationAbandonedEvent to indicate that the conversation was manually
abandoned by programmatically calling the abandon() method on it. |
限定符和类型 | 字段和说明 |
---|---|
protected java.util.List<ConversationCanceller> |
Conversation.cancellers |
protected java.util.List<ConversationCanceller> |
ConversationFactory.cancellers |
限定符和类型 | 方法和说明 |
---|---|
ConversationCanceller |
ConversationCanceller.clone()
允许某一
ConversationFactory 在创建一个新Conversation 时
复制这个ConversationCanceller. |
ConversationCanceller |
ManuallyAbandonedConversationCanceller.clone() |
ConversationCanceller |
ExactMatchConversationCanceller.clone() |
ConversationCanceller |
InactivityConversationCanceller.clone() |
ConversationCanceller |
ConversationAbandonedEvent.getCanceller()
获取终止该会话的
ConversationCanceller . |
限定符和类型 | 方法和说明 |
---|---|
java.util.List<ConversationCanceller> |
Conversation.getCancellers()
Gets the list of
ConversationCanceller s |
限定符和类型 | 方法和说明 |
---|---|
ConversationFactory |
ConversationFactory.withConversationCanceller(ConversationCanceller canceller)
Adds a
ConversationCanceller to constructed conversations. |
构造器和说明 |
---|
ConversationAbandonedEvent(Conversation conversation,
ConversationCanceller canceller) |