接口 CommandSender

所有超级接口:
Permissible, ServerOperator
所有已知子接口:
AbstractArrow, AbstractHorse, AbstractSkeleton, AbstractVillager, AbstractWindCharge, Ageable, Allay, Ambient, Animals, AreaEffectCloud, Armadillo, ArmorStand, Arrow, Axolotl, Bat, Bee, Blaze, BlockCommandSender, BlockDisplay, Boat, Bogged, Boss, Breedable, Breeze, BreezeWindCharge, Camel, Cat, CaveSpider, ChestBoat, ChestedHorse, Chicken, Cod, CommandMinecart, ComplexEntityPart, ComplexLivingEntity, ConsoleCommandSender, Cow, Creature, Creeper, Damageable, Display, Dolphin, Donkey, DragonFireball, Drowned, Egg, ElderGuardian, EnderCrystal, EnderDragon, EnderDragonPart, Enderman, Endermite, EnderPearl, EnderSignal, Enemy, Entity, Evoker, EvokerFangs, ExperienceOrb, Explosive, ExplosiveMinecart, FallingBlock, Fireball, Firework, Fish, FishHook, Flying, Fox, Frog, Ghast, Giant, GlowItemFrame, GlowSquid, Goat, Golem, Guardian, Hanging, Hoglin, HopperMinecart, Horse, HumanEntity, Husk, Illager, Illusioner, Interaction, IronGolem, Item, ItemDisplay, ItemFrame, LargeFireball, LeashHitch, LightningStrike, LingeringPotion, LivingEntity, Llama, LlamaSpit, MagmaCube, Marker, Minecart, Mob, Monster, Mule, MushroomCow, NPC, Ocelot, OminousItemSpawner, Painting, Panda, Parrot, Phantom, Pig, Piglin, PiglinAbstract, PiglinBrute, PigZombie, Pillager, Player, PolarBear, PoweredMinecart, Projectile, ProxiedCommandSender, PufferFish, Rabbit, Raider, Ravager, RemoteConsoleCommandSender, RideableMinecart, Salmon, Sheep, Shulker, ShulkerBullet, Silverfish, SizedFireball, Skeleton, SkeletonHorse, Slime, SmallFireball, Sniffer, Snowball, Snowman, SpawnerMinecart, SpectralArrow, Spellcaster, Spider, SplashPotion, Squid, Steerable, StorageMinecart, Stray, Strider, Tadpole, Tameable, TextDisplay, ThrowableProjectile, ThrownExpBottle, ThrownPotion, TippedArrow, TNTPrimed, TraderLlama, Trident, TropicalFish, Turtle, Vehicle, Vex, Villager, Vindicator, WanderingTrader, Warden, WaterMob, WindCharge, Witch, Wither, WitherSkeleton, WitherSkull, Wolf, Zoglin, Zombie, ZombieHorse, ZombieVillager

public interface CommandSender extends Permissible
  • 方法详细资料

    • sendMessage

      void sendMessage(@NotNull @NotNull String message)
      向命令发送者发送消息.

      原文: Sends this sender a message

      参数:
      message - 要发送的消息
    • sendMessage

      void sendMessage(@NotNull @NotNull String... messages)
      向命令发送者发送多条消息.

      原文: Sends this sender multiple messages

      参数:
      messages - 要发送的消息
    • sendMessage

      void sendMessage(@Nullable @Nullable UUID sender, @NotNull @NotNull String message)
      向命令发送者发送消息.

      原文: Sends this sender a message

      参数:
      message - 要发送的消息
      sender - 消息的发送者
    • sendMessage

      void sendMessage(@Nullable @Nullable UUID sender, @NotNull @NotNull String... messages)
      向命令发送者发送多条消息.

      原文: Sends this sender multiple messages

      参数:
      messages - 要发送的消息
      sender - 消息的发送者
    • getServer

      @NotNull @NotNull Server getServer()
      返回运行此命令的服务器实例.

      原文: Returns the server instance that this command is running on

      返回:
      服务器实例
    • getName

      获取命令发送者的名字.

      原文: Gets the name of this command sender

      返回:
      发送者的名字
    • spigot