接口 Conversable
- 所有已知子接口:
ConsoleCommandSender
,Player
public interface Conversable
The Conversable interface is used to indicate objects that can have
conversations.
-
方法概要
修饰符和类型方法说明void
abandonConversation
(@NotNull Conversation conversation) Abandons an active conversation.void
abandonConversation
(@NotNull Conversation conversation, @NotNull ConversationAbandonedEvent details) Abandons an active conversation.void
Accepts input into the active conversation.boolean
beginConversation
(@NotNull Conversation conversation) Enters into a dialog with a Conversation object.boolean
Tests to see of a Conversable object is actively engaged in a conversation.void
sendRawMessage
(@NotNull String message) Sends this sender a message rawvoid
sendRawMessage
(@Nullable UUID sender, @NotNull String message) Sends this sender a message raw
-
方法详细资料
-
isConversing
boolean isConversing()Tests to see of a Conversable object is actively engaged in a conversation.- 返回:
- True if a conversation is in progress
-
acceptConversationInput
Accepts input into the active conversation. If no conversation is in progress, this method does nothing.- 参数:
input
- The input message into the conversation
-
beginConversation
Enters into a dialog with a Conversation object.- 参数:
conversation
- The conversation to begin- 返回:
- True if the conversation should proceed, false if it has been enqueued
-
abandonConversation
Abandons an active conversation.- 参数:
conversation
- The conversation to abandon
-
abandonConversation
void abandonConversation(@NotNull @NotNull Conversation conversation, @NotNull @NotNull ConversationAbandonedEvent details) Abandons an active conversation.- 参数:
conversation
- The conversation to abandondetails
- Details about why the conversation was abandoned
-
sendRawMessage
Sends this sender a message raw- 参数:
message
- Message to be displayed
-
sendRawMessage
Sends this sender a message raw- 参数:
message
- Message to be displayedsender
- The sender of this message
-