接口的使用
org.bukkit.entity.LivingEntity
使用LivingEntity的程序包
程序包
说明
Bukkit API的顶级程序包, 包含通用的API类和接口.
用于操作在
世界内的三位像素(方块),包括一些特定的状态.为在
世界内存在的非三维像素单位(实体)提供的接口,包含玩家、怪物、抛射物等.代表每种
药水属性和操作的类的集合.提供多种目的和单一目的的类以简化各种编程概念.
-
org.bukkit中LivingEntity的使用
类型参数类型为LivingEntity的org.bukkit中的方法修饰符和类型方法说明<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 givenLocationwith the supplied function run before the entity is added to the world.返回变量类型为LivingEntity的类型的org.bukkit中的方法修饰符和类型方法说明RegionAccessor.getLivingEntities()Get a list of all living entities in this RegionAccessorWorld.getLivingEntities()获取一个这个世界所有生物实体的列表. -
org.bukkit.block中LivingEntity的使用
返回LivingEntity的org.bukkit.block中的方法返回变量类型为LivingEntity的类型的org.bukkit.block中的方法参数类型为LivingEntity的org.bukkit.block中的方法修饰符和类型方法说明voidStructure.setAuthor(@NotNull LivingEntity livingEntity) 设置此结构的作者名为某个LivingEntity的名字.booleanConduit.setTarget(@Nullable LivingEntity target) 设置潮涌核心的狩猎目标. -
org.bukkit.entity中LivingEntity的使用
修饰符和类型接口说明interfaceRepresents a Cow.interface代表一个马基对象.interfaceThis interface defines or represents the abstract concept of skeleton-like entities on the server.interface代表一个抽象村民NPC.interface代表一个有年龄的实体.interfaceAn Allay.interface代表环境生物(目前只有蝙蝠属于这一行列).interface代表动物.interfaceRepresents an Armadillo.interfaceinterfaceAn Axolotl.interface表示一只蝙蝠.interface代表蜜蜂.interface代表烈焰人怪物.interfaceRepresents a Bogged Skeleton.interface代表一个有年龄和繁殖能力的实体.interfaceRepresents a Breeze.interface代表一只骆驼interface喵.interface代表蜘蛛(洞穴蜘蛛).interface代表一个可以携带物品的类马生物.interface代表鸡.interface代表鳕鱼.interface代表复杂生物 --- 由多种较小实体部分组成 (目前只有末影龙属于此行列).interface代表牛.interfaceRepresents a Creaking.interface代表一类生物.interface代表苦力怕.interface这是海豚~interface代表驴 -ChestedHorse的变种.interface溺尸.interface代表远古守卫者 - 一种守卫者.interface代表末影龙.interface代表末影人.interface名副其实的小不点 - 末影螨.interfaceRepresents an Enemyinterface代表唤魔者.interface已过时。interface代表能飞行的实体.interface代表狐狸.interfaceA Frog.interface代表恶魂.interface代表巨人.interfaceA Glow Squid.interfaceA Goat.interface一个可以伤害敌人的傀儡.interface守卫海底遗迹的守卫者们.interfaceRepresents a Happy Ghast.interfaceRepresents a Hoglin.interface代表一匹马.interface代表人类实体, 比如一个NPC或一名玩家interface代表一具尸壳 -Zombie的变异体.interface代表一种"灾厄村民" (亦称刌民), 包含卫道士、女巫等.interface代表幻术师实体.interface村民守卫者——铁傀儡.interface表示一只羊驼.interface代表岩浆怪.interfaceRepresents a Mob.interface代表怪物.interface代表骡子 -ChestedHorse的变种.interface代表哞菇(AbstractCow).interface代表非玩家角色.interface代表豹猫.interface代表熊猫.interface代表鹦鹉.interface代表幻翼.interface代表猪.interfaceRepresents a Piglin.interfacePiglin / Piglin Brute.interfaceRepresents a Piglin Brute.interface代表僵尸猪人.interface掠夺者实体.interface玩家对象interface代表北极熊.interfaceRepresents a puffer fish.interfaceinterfaceinterface劫掠兽实体.interfaceRepresents a salmon fish.interface代表羊.interfaceinterface代表蠹虫.interface代表骷髅.interfaceRepresents a SkeletonHorse - variant ofAbstractHorse.interface代表史莱姆.interfaceRepresents a Sniffer.interface代表雪人实体.interface代表会施法的灾厄村民 (目前只有唤魔者和幻术师).interface代表蜘蛛.interface代表鱿鱼.interfaceRepresents an entity which may be saddled, ridden and steered using an item.interfaceRepresents a Stray - variant ofAbstractSkeleton.interfaceRepresents a Strider.interfaceA babyFrog.interfaceinterfaceRepresents a trader Llama.interface代表热带鱼.interfaceRepresents a turtle.interface恼鬼.interfaceRepresents a villager NPCinterface代表卫道士.interfaceRepresents a wandering trader NPCinterface监守者.interface代表海洋生物.interface代表女巫.interface代表凋零boss.interfaceRepresents a WitherSkeleton - variant ofAbstractSkeleton.interface代表狼.interfaceRepresents a Zoglin.interface代表僵尸.interfaceRepresents a ZombieHorse - variant ofAbstractHorse.interface修饰符和类型方法说明Firework.getAttachedTo()Get theLivingEntityto which this firework is attached.Warden.getEntityAngryAt()Gets theLivingEntityat 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.Headof the wither.参数类型为LivingEntity的org.bukkit.entity中的方法修饰符和类型方法说明voidPlayer.sendEquipmentChange(@NotNull LivingEntity entity, @NotNull Map<EquipmentSlot, ItemStack> items) Send multiple equipment changes for the target entity.voidPlayer.sendEquipmentChange(@NotNull LivingEntity entity, @NotNull EquipmentSlot slot, @Nullable ItemStack item) 向玩家发送某个实体的盔甲槽变化数据包.voidPlayer.sendPotionEffectChange(@NotNull LivingEntity entity, @NotNull PotionEffect effect) Change a potion effect for the target entity.voidPlayer.sendPotionEffectChangeRemove(@NotNull LivingEntity entity, @NotNull PotionEffectType type) Remove a potion effect for the target entity.booleanFirework.setAttachedTo(@Nullable LivingEntity entity) Set theLivingEntityto which this firework is attached.voidEvokerFangs.setOwner(@Nullable LivingEntity owner) 设置召唤此尖牙的生物.voidMob.setTarget(@Nullable LivingEntity target) Instructs this Mob to set the specified LivingEntity as its target.voidWither.setTarget(@NotNull Wither.Head head, @Nullable LivingEntity target) This method will set the target of individual headsWither.Headof the wither.voidWither.setTarget(@Nullable LivingEntity target) Instructs this Mob to set the specified LivingEntity as its target. -
org.bukkit.event.block中LivingEntity的使用
返回变量类型为LivingEntity的类型的org.bukkit.event.block中的方法修饰符和类型方法说明BellResonateEvent.getResonatedEntities()Get a mutable list of allLivingEntitiesto be highlighted by the bell's resonating.参数类型为LivingEntity的org.bukkit.event.block中的构造器限定符构造器说明BlockDispenseArmorEvent(@NotNull Block block, @NotNull ItemStack dispensed, @NotNull LivingEntity target) 类型变量类型为LivingEntity的org.bukkit.event.block中的构造器参数限定符构造器说明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()返回变量类型为LivingEntity的类型的org.bukkit.event.entity中的方法修饰符和类型方法说明AreaEffectCloudApplyEvent.getAffectedEntities()获取一个受影响实体的可变列表。PotionSplashEvent.getAffectedEntities()Retrieves a list of all effected entities参数类型为LivingEntity的org.bukkit.event.entity中的方法修饰符和类型方法说明doublePotionSplashEvent.getIntensity(@NotNull LivingEntity entity) Gets the intensity of the potion's effects for given entity; This depends on the distance to the impact centervoidPotionSplashEvent.setIntensity(@NotNull LivingEntity entity, double intensity) Overwrites the intensity for a given entity参数类型为LivingEntity的org.bukkit.event.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) 类型变量类型为LivingEntity的org.bukkit.event.entity中的构造器参数限定符构造器说明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的使用
参数类型为LivingEntity的org.bukkit.event.vehicle中的构造器 -
org.bukkit.potion中LivingEntity的使用
参数类型为LivingEntity的org.bukkit.potion中的方法 -
org.bukkit.util中LivingEntity的使用
参数类型为LivingEntity的org.bukkit.util中的构造器限定符构造器说明BlockIterator(@NotNull LivingEntity entity) 创建BlockIterator.BlockIterator(@NotNull LivingEntity entity, int maxDistance) BlockIterator的构造函数.
FishHook