类 CommandSender.Spigot

java.lang.Object
org.bukkit.command.CommandSender.Spigot
直接已知子类:
Entity.Spigot
封闭接口:
CommandSender

public static class CommandSender.Spigot extends Object
  • 构造器详细资料

    • Spigot

      public Spigot()
  • 方法详细资料

    • sendMessage

      public void sendMessage(@NotNull BaseComponent component)
      向命令发送者发送一个聊天消息组件.

      原文:Sends this sender a chat component.

      参数:
      component - 要发送的聊天消息组件
    • sendMessage

      public void sendMessage(@NotNull @NotNull BaseComponent... components)
      将多个聊天消息组件作为单条消息发送给命令发送者.

      原文:Sends an array of components as a single message to the sender.

      参数:
      components - 要发送的聊天消息组件
    • sendMessage

      public void sendMessage(@Nullable @Nullable UUID sender, @NotNull BaseComponent component)
      向命令发送者发送一个聊天消息组件.

      原文:Sends this sender a chat component.

      参数:
      component - 要发送的聊天消息组件
      sender - 消息的发送者
    • sendMessage

      public void sendMessage(@Nullable @Nullable UUID sender, @NotNull @NotNull BaseComponent... components)
      将多个聊天消息组件作为单条消息发送给命令发送者.

      原文:Sends an array of components as a single message to the sender.

      参数:
      components - 要发送的聊天消息组件
      sender - 消息的发送者