接口 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
-
嵌套类概要
-
方法概要
修饰符和类型方法说明getName()
获取命令发送者的名字.返回运行此命令的服务器实例.void
sendMessage
(@NotNull String message) 向命令发送者发送消息.void
sendMessage
(@NotNull String... messages) 向命令发送者发送多条消息.void
sendMessage
(@Nullable UUID sender, @NotNull String message) 向命令发送者发送消息.void
sendMessage
(@Nullable UUID sender, @NotNull String... messages) 向命令发送者发送多条消息.spigot()
从接口继承的方法 org.bukkit.permissions.Permissible
addAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachment
从接口继承的方法 org.bukkit.permissions.ServerOperator
isOp, setOp
-
方法详细资料
-
sendMessage
向命令发送者发送消息.原文: Sends this sender a message
- 参数:
message
- 要发送的消息
-
sendMessage
向命令发送者发送多条消息.原文: Sends this sender multiple messages
- 参数:
messages
- 要发送的消息
-
sendMessage
向命令发送者发送消息.原文: Sends this sender a message
- 参数:
message
- 要发送的消息sender
- 消息的发送者
-
sendMessage
向命令发送者发送多条消息.原文: Sends this sender multiple messages
- 参数:
messages
- 要发送的消息sender
- 消息的发送者
-
getServer
返回运行此命令的服务器实例.原文: Returns the server instance that this command is running on
- 返回:
- 服务器实例
-
getName
获取命令发送者的名字.原文: Gets the name of this command sender
- 返回:
- 发送者的名字
-
spigot
-