接口 Conversable

所有已知子接口:
ConsoleCommandSender, Player

public interface Conversable
Conversable 接口用于表示可以进行对话的对象。
  • 方法详细资料

    • isConversing

      boolean isConversing()
      测试 Conversable 对象是否积极参与对话。

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

      返回:
      如果对话正在进行中则返回 true。
    • acceptConversationInput

      void acceptConversationInput(@NotNull @NotNull String input)
      接受输入到活动对话中。如果没有对话正在进行,此方法不执行任何操作。

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

      参数:
      input - 输入到对话中的消息。
    • beginConversation

      boolean beginConversation(@NotNull @NotNull Conversation conversation)
      与 Conversation 对象进行对话。

      原文: Enters into a dialog with a Conversation object.

      参数:
      conversation - 要开始的对话。
      返回:
      如果对话应继续则返回 true,如果已排队则返回 false。
    • abandonConversation

      void abandonConversation(@NotNull @NotNull Conversation conversation)
      放弃一个活动对话。

      原文: Abandons an active conversation.

      参数:
      conversation - 要放弃的对话。
    • abandonConversation

      void abandonConversation(@NotNull @NotNull Conversation conversation, @NotNull @NotNull ConversationAbandonedEvent details)
      放弃一个活动对话。

      原文: Abandons an active conversation.

      参数:
      conversation - 要放弃的对话。
      details - 关于对话被放弃原因的详细信息。
    • sendRawMessage

      void sendRawMessage(@NotNull @NotNull String message)
      向此发送者发送原始消息。

      原文: Sends this sender a message raw

      参数:
      message - 要显示的消息。
    • sendRawMessage

      void sendRawMessage(@Nullable @Nullable UUID sender, @NotNull @NotNull String message)
      向此发送者发送原始消息。

      原文: Sends this sender a message raw

      参数:
      message - 要显示的消息。
      sender - 此消息的发送者。