接口的使用
org.bukkit.entity.LivingEntity
程序包
说明
Bukkit API的顶级程序包, 包含通用的API类和接口.
用于操作在
世界
内的三位像素(方块),包括一些特定的状态.为在
世界
内存在的非三维像素单位(实体)提供的接口,包含玩家、怪物、抛射物等.代表每种
药水
属性和操作的类的集合.提供多种目的和单一目的的类以简化各种编程概念.
-
org.bukkit中LivingEntity的使用
修饰符和类型方法说明<T extends LivingEntity>
TWorld.spawn
(@NotNull Location location, @NotNull Class<T> clazz, CreatureSpawnEvent.SpawnReason spawnReason, boolean randomizeData, @Nullable Consumer<? super T> function) Creates a new entity at the givenLocation
with the supplied function run before the entity is added to the world.修饰符和类型方法说明RegionAccessor.getLivingEntities()
Get a list of all living entities in this RegionAccessorWorld.getLivingEntities()
获取一个这个世界所有生物实体的列表. -
org.bukkit.block中LivingEntity的使用
修饰符和类型方法说明void
Structure.setAuthor
(@NotNull LivingEntity livingEntity) 设置此结构的作者名为某个LivingEntity
的名字.boolean
Conduit.setTarget
(@Nullable LivingEntity target) Set the conduit's hunting target. -
org.bukkit.entity中LivingEntity的使用
修饰符和类型接口说明interface
代表一个马基对象.interface
This interface defines or represents the abstract concept of skeleton-like entities on the server.interface
代表一个抽象村民NPC.interface
代表一个有年龄的实体.interface
An Allay.interface
代表环境生物(目前只有蝙蝠属于这一行列).interface
代表动物.interface
Represents an Armadillo.interface
interface
An Axolotl.interface
表示一只蝙蝠.interface
代表蜜蜂.interface
代表烈焰人怪物.interface
Represents a Bogged Skeleton.interface
代表一个有年龄和繁殖能力的实体.interface
Represents a Breeze.interface
代表一只骆驼interface
喵.interface
代表蜘蛛(洞穴蜘蛛).interface
代表一个可以携带物品的类马生物.interface
代表鸡.interface
代表鳕鱼.interface
代表复杂生物 --- 由多种较小实体部分组成 (目前只有末影龙属于此行列).interface
代表牛.interface
代表一类生物.interface
代表苦力怕.interface
这是海豚~interface
代表驴 -ChestedHorse
的变种.interface
溺尸.interface
代表远古守卫者 - 一种守卫者
.interface
代表末影龙.interface
代表末影人.interface
名副其实的小不点 - 末影螨.interface
Represents an Enemyinterface
代表唤魔者.interface
已过时。interface
代表能飞行的实体.interface
代表狐狸.interface
A Frog.interface
代表恶魂.interface
代表巨人.interface
A Glow Squid.interface
A Goat.interface
一个可以伤害敌人的傀儡.interface
守卫海底遗迹的守卫者们.interface
Represents a Hoglin.interface
代表一匹马.interface
代表人类实体, 比如一个NPC或一名玩家interface
代表一具尸壳 -Zombie
的变异体.interface
代表一种"灾厄村民" (亦称刌民), 包含卫道士、女巫等.interface
代表幻术师实体.interface
村民守卫者——铁傀儡.interface
表示一只羊驼.interface
代表岩浆怪.interface
Represents a Mob.interface
代表怪物.interface
代表骡子 -ChestedHorse
的变种.interface
代表哞菇(Cow
).interface
代表非玩家角色.interface
代表豹猫.interface
代表熊猫.interface
代表鹦鹉.interface
代表幻翼.interface
代表猪.interface
Represents a Piglin.interface
Piglin / Piglin Brute.interface
Represents a Piglin Brute.interface
代表僵尸猪人.interface
掠夺者实体.interface
玩家对象interface
代表北极熊.interface
Represents a puffer fish.interface
interface
interface
劫掠兽实体.interface
Represents a salmon fish.interface
代表羊.interface
interface
代表蠹虫.interface
代表骷髅.interface
Represents a SkeletonHorse - variant ofAbstractHorse
.interface
代表史莱姆.interface
Represents a Sniffer.interface
代表雪人实体.interface
代表会施法的灾厄村民 (目前只有唤魔者和幻术师).interface
代表蜘蛛.interface
代表鱿鱼.interface
Represents an entity which may be saddled, ridden and steered using an item.interface
Represents a Stray - variant ofAbstractSkeleton
.interface
Represents a Strider.interface
A babyFrog
.interface
interface
Represents a trader Llama.interface
代表热带鱼.interface
Represents a turtle.interface
恼鬼.interface
Represents a villager NPCinterface
代表卫道士.interface
Represents a wandering trader NPCinterface
监守者.interface
代表海洋生物.interface
代表女巫.interface
代表凋零boss.interface
Represents a WitherSkeleton - variant ofAbstractSkeleton
.interface
代表狼.interface
Represents a Zoglin.interface
代表僵尸.interface
Represents a ZombieHorse - variant ofAbstractHorse
.interface
修饰符和类型方法说明Firework.getAttachedTo()
Get theLivingEntity
to which this firework is attached.Warden.getEntityAngryAt()
Gets theLivingEntity
at which this warden is most angry.EvokerFangs.getOwner()
获取召唤此尖牙的生物
.Mob.getTarget()
Gets the current target of this MobWither.getTarget
(@NotNull Wither.Head head) This method will get the target of individual headsWither.Head
of the wither.修饰符和类型方法说明void
Player.sendEquipmentChange
(@NotNull LivingEntity entity, @NotNull Map<EquipmentSlot, ItemStack> items) Send multiple equipment changes for the target entity.void
Player.sendEquipmentChange
(@NotNull LivingEntity entity, @NotNull EquipmentSlot slot, @Nullable ItemStack item) 向玩家发送某个实体的盔甲槽变化数据包.void
Player.sendPotionEffectChange
(@NotNull LivingEntity entity, @NotNull PotionEffect effect) Change a potion effect for the target entity.void
Player.sendPotionEffectChangeRemove
(@NotNull LivingEntity entity, @NotNull PotionEffectType type) Remove a potion effect for the target entity.boolean
Firework.setAttachedTo
(@Nullable LivingEntity entity) Set theLivingEntity
to which this firework is attached.void
EvokerFangs.setOwner
(@Nullable LivingEntity owner) 设置召唤此尖牙的生物
.void
Mob.setTarget
(@Nullable LivingEntity target) Instructs this Mob to set the specified LivingEntity as its target.void
Wither.setTarget
(@NotNull Wither.Head head, @Nullable LivingEntity target) This method will set the target of individual headsWither.Head
of the wither.void
Wither.setTarget
(@Nullable LivingEntity target) Instructs this Mob to set the specified LivingEntity as its target. -
org.bukkit.event.block中LivingEntity的使用
修饰符和类型方法说明BellResonateEvent.getResonatedEntities()
Get a mutable list of allLivingEntities
to be highlighted by the bell's resonating.限定符构造器说明BlockDispenseArmorEvent
(@NotNull Block block, @NotNull ItemStack dispensed, @NotNull LivingEntity target) 限定符构造器说明BellResonateEvent
(@NotNull Block theBlock, @NotNull List<LivingEntity> resonatedEntities) -
org.bukkit.event.entity中LivingEntity的使用
修饰符和类型方法说明EntityBreedEvent.getBreeder()
获取引起此次繁殖事件的实体.ArrowBodyCountChangeEvent.getEntity()
CreatureSpawnEvent.getEntity()
EntityBreakDoorEvent.getEntity()
EntityBreedEvent.getEntity()
EntityCreatePortalEvent.getEntity()
已过时。EntityDeathEvent.getEntity()
EntityKnockbackEvent.getEntity()
EntityPickupItemEvent.getEntity()
EntityResurrectEvent.getEntity()
EntityShootBowEvent.getEntity()
EntityTameEvent.getEntity()
EntityBreedEvent.getFather()
获取此新生实体的父实体.EntityBreedEvent.getMother()
获取繁殖此实体的母实体.EntityTargetLivingEntityEvent.getTarget()
修饰符和类型方法说明AreaEffectCloudApplyEvent.getAffectedEntities()
获取一个受影响实体的可变列表。PotionSplashEvent.getAffectedEntities()
Retrieves a list of all effected entities修饰符和类型方法说明double
PotionSplashEvent.getIntensity
(@NotNull LivingEntity entity) Gets the intensity of the potion's effects for given entity; This depends on the distance to the impact centervoid
PotionSplashEvent.setIntensity
(@NotNull LivingEntity entity, double intensity) Overwrites the intensity for a given entity限定符构造器说明ArrowBodyCountChangeEvent
(@NotNull LivingEntity entity, int oldAmount, int newAmount, boolean isReset) CreatureSpawnEvent
(@NotNull LivingEntity spawnee, @NotNull CreatureSpawnEvent.SpawnReason spawnReason) EntityBreakDoorEvent
(@NotNull LivingEntity entity, @NotNull Block targetBlock) EntityBreedEvent
(@NotNull LivingEntity child, @NotNull LivingEntity mother, @NotNull LivingEntity father, @Nullable LivingEntity breeder, @Nullable ItemStack bredWith, int experience) EntityCreatePortalEvent
(@NotNull LivingEntity what, @NotNull List<BlockState> blocks, @NotNull PortalType type) 已过时。EntityDeathEvent
(@NotNull LivingEntity entity, @NotNull DamageSource damageSource, @NotNull List<ItemStack> drops) EntityDeathEvent
(@NotNull LivingEntity what, @NotNull DamageSource damageSource, @NotNull List<ItemStack> drops, int droppedExp) EntityKnockbackByEntityEvent
(@NotNull LivingEntity entity, @NotNull Entity source, @NotNull EntityKnockbackEvent.KnockbackCause cause, double force, @NotNull Vector rawKnockback, @NotNull Vector knockback) EntityKnockbackEvent
(@NotNull LivingEntity entity, @NotNull EntityKnockbackEvent.KnockbackCause cause, double force, @NotNull Vector rawKnockback, @NotNull Vector knockback) EntityPickupItemEvent
(@NotNull LivingEntity entity, @NotNull Item item, int remaining) EntityPotionEffectEvent
(@NotNull LivingEntity livingEntity, @Nullable PotionEffect oldEffect, @Nullable PotionEffect newEffect, @NotNull EntityPotionEffectEvent.Cause cause, @NotNull EntityPotionEffectEvent.Action action, boolean override) 已过时。EntityResurrectEvent
(@NotNull LivingEntity what, @Nullable EquipmentSlot hand) EntityShootBowEvent
(@NotNull LivingEntity shooter, @Nullable ItemStack bow, @Nullable ItemStack consumable, @NotNull Entity projectile, @NotNull EquipmentSlot hand, float force, boolean consumeItem) EntityTameEvent
(@NotNull LivingEntity entity, @NotNull AnimalTamer owner) EntityTargetLivingEntityEvent
(@NotNull Entity entity, @Nullable LivingEntity target, @Nullable EntityTargetEvent.TargetReason reason) EntityToggleGlideEvent
(@NotNull LivingEntity who, boolean isGliding) EntityToggleSwimEvent
(@NotNull LivingEntity who, boolean isSwimming) 限定符构造器说明AreaEffectCloudApplyEvent
(@NotNull AreaEffectCloud entity, @NotNull List<LivingEntity> affectedEntities) PotionSplashEvent
(@NotNull ThrownPotion potion, @NotNull Map<LivingEntity, Double> affectedEntities) 已过时。PotionSplashEvent
(@NotNull ThrownPotion potion, @Nullable Entity hitEntity, @Nullable Block hitBlock, @Nullable BlockFace hitFace, @NotNull Map<LivingEntity, Double> affectedEntities) -
org.bukkit.event.vehicle中LivingEntity的使用
-
org.bukkit.potion中LivingEntity的使用
-
org.bukkit.util中LivingEntity的使用
限定符构造器说明BlockIterator
(@NotNull LivingEntity entity) 创建BlockIterator.BlockIterator
(@NotNull LivingEntity entity, int maxDistance) BlockIterator的构造函数.
FishHook