程序包 cn.nukkit.entity
接口 EntityNameable
- 所有已知实现类:
EntityAnimal
,EntityArmorStand
,EntityBat
,EntityBee
,EntityBlaze
,EntityCat
,EntityCaveSpider
,EntityChicken
,EntityCod
,EntityCow
,EntityCreature
,EntityCreeper
,EntityDolphin
,EntityDonkey
,EntityDrowned
,EntityElderGuardian
,EntityEnderDragon
,EntityEnderman
,EntityEndermite
,EntityEvoker
,EntityFox
,EntityGhast
,EntityGuardian
,EntityHoglin
,EntityHorse
,EntityHuman
,EntityHumanType
,EntityHusk
,EntityIronGolem
,EntityLlama
,EntityMagmaCube
,EntityMob
,EntityMooshroom
,EntityMule
,EntityOcelot
,EntityPanda
,EntityParrot
,EntityPhantom
,EntityPhysical
,EntityPig
,EntityPiglin
,EntityPiglinBrute
,EntityPillager
,EntityPolarBear
,EntityPufferfish
,EntityRabbit
,EntityRavager
,EntitySalmon
,EntitySheep
,EntityShulker
,EntitySilverfish
,EntitySkeleton
,EntitySkeletonHorse
,EntitySlime
,EntitySnowGolem
,EntitySpider
,EntitySquid
,EntityStray
,EntityStrider
,EntityTameable
,EntityTropicalFish
,EntityTurtle
,EntityVex
,EntityVillager
,EntityVillagerV1
,EntityVindicator
,EntityWanderingTrader
,EntityWaterAnimal
,EntityWitch
,EntityWither
,EntityWitherSkeleton
,EntityWolf
,EntityZoglin
,EntityZombie
,EntityZombieHorse
,EntityZombiePigman
,EntityZombieVillager
,EntityZombieVillagerV1
,Player
An entity which can be named by name tags.
-
方法概要
修饰符和类型方法说明default boolean
applyNameTag
(Item item) 已过时。boolean
boolean
default boolean
onInteract
(Player player, Item item, Vector3 clickedPos) default boolean
playerApplyNameTag
(Player player, Item item) default boolean
playerApplyNameTag
(Player player, Item item, boolean consume) void
setNameTag
(String nameTag) void
setNameTagVisible
(boolean visible) void
setPersistent
(boolean persistent)
-
方法详细资料
-
setNameTag
@PowerNukkitOnly("The Entity implementations are not PowerNukkit only") void setNameTag(String nameTag) -
getNameTag
-
setNameTagVisible
@PowerNukkitOnly("The Entity implementations are not PowerNukkit only") void setNameTagVisible(boolean visible) -
isNameTagVisible
-
isPersistent
-
setPersistent
-
onInteract
@PowerNukkitOnly("The Entity implementations are not PowerNukkit only") default boolean onInteract(Player player, Item item, Vector3 clickedPos) -
playerApplyNameTag
@PowerNukkitOnly @Since("1.4.0.0-PN") default boolean playerApplyNameTag(@Nonnull Player player, @Nonnull Item item) -
playerApplyNameTag
@PowerNukkitOnly @Since("1.4.0.0-PN") default boolean playerApplyNameTag(@Nonnull Player player, @Nonnull Item item, boolean consume) -
applyNameTag
@PowerNukkitOnly @Deprecated @DeprecationDetails(since="1.4.0.0-PN", reason="New implementation needs a player instance, using this method may allow players to name unexpected entities", by="PowerNukkit", replaceWith="playerApplyNameTag(Player, Item)") default boolean applyNameTag(Item item) 已过时。
-