接口的使用
org.bukkit.entity.LivingEntity
使用LivingEntity的程序包
程序包
说明
Bukkit的常用类.
用于操作在
世界
内的三位像素(方块),包括一些特定的状态.为在
世界
内存在的非三维像素单位(实体)提供的接口,包含玩家、怪物、抛射物等.代表每种
药水
属性和操作的类的集合.提供多种目的和单一目的的类以简化各种编程概念.
-
org.bukkit中LivingEntity的使用
返回变量类型为LivingEntity的类型的org.bukkit中的方法 -
org.bukkit.block中LivingEntity的使用
返回变量类型为LivingEntity的类型的org.bukkit.block中的方法修饰符和类型方法说明Beacon.getEntitiesInRange()
Returns the list of players within the beacon's range of effect.参数类型为LivingEntity的org.bukkit.block中的方法修饰符和类型方法说明void
Structure.setAuthor
(LivingEntity livingEntity) Set the name of whoever created this structure using aLivingEntity
. -
org.bukkit.entity中LivingEntity的使用
修饰符和类型接口说明interface
Represents a Horse-like creature.interface
代表一个有年龄和繁殖能力的实体.interface
代表环境生物(只有蝙蝠属于这一行列).interface
代表动物.interface
interface
表示一只蝙蝠.interface
代表烈焰人怪物.interface
代表蜘蛛(洞穴蜘蛛).interface
Represents Horse-like creatures which can carry an inventory.interface
代表鸡.interface
Represents a complex living entity - one that is made up of various smaller partsinterface
代表牛.interface
Represents a Creature.interface
代表爬行者.interface
Represents a Donkey - variant ofChestedHorse
.interface
Represents an ElderGuardian - variant ofGuardian
.interface
Represents an Ender Dragoninterface
代表末影人.interface
interface
Represents an Evoker "Illager".interface
代表能飞行的实体.interface
代表恶魂.interface
代表巨人.interface
一个可以伤害敌人的傀儡.interface
interface
代表一匹马.interface
代表人类实体, 比如一个NPC或一名玩家interface
代表一具尸壳 -Zombie
的变异体.interface
Represents a type of "Illager".interface
Represents an Illusioner "Illager".interface
村民守卫者——铁傀儡.interface
表示一只羊驼.interface
Represents a MagmaCube.interface
代表怪物.interface
Represents a Mule - variant ofChestedHorse
.interface
代表哞菇(Cow
).interface
代表非玩家角色.interface
代表豹猫.interface
Represents a Parrot.interface
代表猪.interface
代表僵尸猪人.interface
玩家对象interface
Represents a polar bear.interface
interface
代表羊.interface
interface
代表蠢虫.interface
代表骷髅.interface
Represents a SkeletonHorse - variant ofAbstractHorse
.interface
代表史莱姆.interface
代表雪人实体.interface
Represents a spell casting "Illager".interface
代表蜘蛛.interface
代表鱿鱼.interface
Represents a Stray - variant ofSkeleton
.interface
Represents a Vex.interface
Represents a villager NPCinterface
Represents a Vindicator.interface
代表海洋生物.interface
代表女巫.interface
代表凋零boss.interface
Represents a WitherSkeleton - variant ofSkeleton
.interface
代表狼.interface
代表僵尸.interface
Represents a ZombieHorse - variant ofAbstractHorse
.interface
修饰符和类型方法说明EvokerFangs.getOwner()
Gets theLivingEntity
which summoned the fangs.Creature.getTarget()
Gets the current target of this CreatureSlime.getTarget()
获取史莱姆的攻击目标(LivingEntity
).参数类型为LivingEntity的org.bukkit.entity中的方法修饰符和类型方法说明void
EvokerFangs.setOwner
(LivingEntity owner) Sets theLivingEntity
which summoned the fangs.void
Creature.setTarget
(LivingEntity target) Instructs this Creature to set the specified LivingEntity as its target.void
Slime.setTarget
(LivingEntity target) 设置史莱姆的攻击目标(LivingEntity
). -
org.bukkit.event.entity中LivingEntity的使用
修饰符和类型方法说明EntityBreedEvent.getBreeder()
Gets the Entity responsible for breeding.CreatureSpawnEvent.getEntity()
EntityBreakDoorEvent.getEntity()
EntityBreedEvent.getEntity()
EntityCreatePortalEvent.getEntity()
EntityDeathEvent.getEntity()
EntityPickupItemEvent.getEntity()
EntityResurrectEvent.getEntity()
EntityShootBowEvent.getEntity()
EntityTameEvent.getEntity()
EntityBreedEvent.getFather()
Gets the other parent of the newly born entity.EntityBreedEvent.getMother()
Gets the parent creating this entity.EntityTargetLivingEntityEvent.getTarget()
返回变量类型为LivingEntity的类型的org.bukkit.event.entity中的方法修饰符和类型方法说明AreaEffectCloudApplyEvent.getAffectedEntities()
获取一个受影响实体的可变列表。PotionSplashEvent.getAffectedEntities()
Retrieves a list of all effected entities参数类型为LivingEntity的org.bukkit.event.entity中的方法修饰符和类型方法说明double
PotionSplashEvent.getIntensity
(LivingEntity entity) Gets the intensity of the potion's effects for given entity; This depends on the distance to the impact centervoid
PotionSplashEvent.setIntensity
(LivingEntity entity, double intensity) Overwrites the intensity for a given entity参数类型为LivingEntity的org.bukkit.event.entity中的构造器限定符构造器说明CreatureSpawnEvent
(LivingEntity spawnee, CreatureSpawnEvent.SpawnReason spawnReason) EntityBreakDoorEvent
(LivingEntity entity, Block targetBlock) EntityBreedEvent
(LivingEntity child, LivingEntity mother, LivingEntity father, LivingEntity breeder, ItemStack bredWith, int experience) EntityCreatePortalEvent
(LivingEntity what, List<BlockState> blocks, PortalType type) EntityDeathEvent
(LivingEntity entity, List<ItemStack> drops) EntityDeathEvent
(LivingEntity what, List<ItemStack> drops, int droppedExp) EntityPickupItemEvent
(LivingEntity entity, Item item, int remaining) EntityShootBowEvent
(LivingEntity shooter, ItemStack bow, Projectile projectile, float force) EntityTameEvent
(LivingEntity entity, AnimalTamer owner) EntityTargetLivingEntityEvent
(Entity entity, LivingEntity target, EntityTargetEvent.TargetReason reason) EntityToggleGlideEvent
(LivingEntity who, boolean isGliding) 类型变量类型为LivingEntity的org.bukkit.event.entity中的构造器参数限定符构造器说明AreaEffectCloudApplyEvent
(AreaEffectCloud entity, List<LivingEntity> affectedEntities) PotionSplashEvent
(ThrownPotion potion, Map<LivingEntity, Double> affectedEntities) -
org.bukkit.event.vehicle中LivingEntity的使用
参数类型为LivingEntity的org.bukkit.event.vehicle中的构造器 -
org.bukkit.potion中LivingEntity的使用
参数类型为LivingEntity的org.bukkit.potion中的方法修饰符和类型方法说明void
Potion.apply
(LivingEntity to) 已过时。Applies the effects that would be applied by this potion to the givenLivingEntity
.boolean
PotionEffect.apply
(LivingEntity entity) Attempts to add the effect represented by this object to the givenLivingEntity
. -
org.bukkit.util中LivingEntity的使用
参数类型为LivingEntity的org.bukkit.util中的构造器限定符构造器说明BlockIterator
(LivingEntity entity) 创建BlockIterator.BlockIterator
(LivingEntity entity, int maxDistance) BlockIterator的构造函数.