# 接口的使用
org.bukkit.entity.Entity

使用Entity的程序包
程序包
说明
org.bukkit
Bukkit API的顶级程序包, 包含通用的API类和接口.
org.bukkit.block
用于操作在`世界`内的三位像素(方块)，包括一些特定的状态.
org.bukkit.damage
Classes concerning damage types and sources applicable to living entities.
org.bukkit.entity
为在`世界`内存在的非三维像素单位(实体)提供的接口，包含玩家、怪物、抛射物等.
org.bukkit.entity.minecart
为不同种类的`矿车`提供的接口.
org.bukkit.event.block
与`方块`被改变或与`世界`进行交互等情况相关的`事件`.
org.bukkit.event.entity
与`实体`相关的`事件`，不包括 一些直接引用的更具体的实体类型.
org.bukkit.event.hanging
与`悬挂实体`相关的`事件`.
org.bukkit.event.player
与`玩家`相关的`事件`.
org.bukkit.event.vehicle
与`载具实体`相关的`事件`.
org.bukkit.event.world
与`世界`状态和变化有关的`事件`.
org.bukkit.inventory
参与操作玩家物品栏和物品交互的类.
org.bukkit.loot
与战利品表产生与操作有关的类 (Minecraft Wiki - 战利品表).
org.bukkit.structure
Classes related to creating or using `structures` without creating `Structure blocks` in the world.
org.bukkit.util
提供多种目的和单一目的的类以简化各种编程概念.

- ## org.bukkit中Entity的使用

  类型参数类型为Entity的org.bukkit中的方法
  修饰符和类型
  方法
  说明
  `<T extends Entity>
  T`
  RegionAccessor.`addEntity(T entity)`
  Spawns a previously created entity in the world.
  `<T extends Entity>
  T`
  RegionAccessor.`createEntity(@NotNull Location location, @NotNull Class<T> clazz)`
  Creates an entity of a specific class at the given `Location` but does not spawn it in the world.
  `<T extends Entity>
  @NotNull Collection<T>`
  RegionAccessor.`getEntitiesByClass(@NotNull Class<T> cls)`
  Get a collection of all entities in this RegionAccessor matching the given class/interface
  `<T extends Entity>
  @NotNull Collection<T>`
  World.`getEntitiesByClass(@NotNull Class<T> cls)`
  获取一个在这个世界的所有与指定的类/接口相匹配的实体的集合.
  `<T extends Entity>
  @NotNull Collection<T>`
  World.`getEntitiesByClass(@NotNull Class<T>... classes)`
  已过时。
  `<T extends Entity>
  T`
  RegionAccessor.`spawn(@NotNull Location location, @NotNull Class<T> clazz)`
  在指定的`位置`根据给定的类生成一个实体.
  `<T extends Entity>
  T`
  RegionAccessor.`spawn(@NotNull Location location, @NotNull Class<T> clazz, boolean randomizeData, @Nullable Consumer<? super T> function)`
  Creates a new entity at the given `Location` with the supplied function run before the entity is added to the world.
  `<T extends Entity>
  T`
  RegionAccessor.`spawn(@NotNull Location location, @NotNull Class<T> clazz, @Nullable Consumer<? super T> function)`
  Spawn an entity of a specific class at the given `Location`, with the supplied function run before the entity is added to the world.
  返回Entity的org.bukkit中的方法
  修饰符和类型
  方法
  说明
  `@NotNull Entity[]`
  Chunk.`getEntities()`
  获取该区块内的所有实体.
  `static @Nullable Entity`
  Bukkit.`getEntity(@NotNull UUID uuid)`
  用UUID获取实体.
  `@Nullable Entity`
  Server.`getEntity(@NotNull UUID uuid)`
  用UUID获取实体.
  `@NotNull Entity`
  Vibration.Destination.EntityDestination.`getEntity()`
  `@NotNull Entity`
  RegionAccessor.`spawnEntity(@NotNull Location location, @NotNull EntityType type)`
  在指定的`位置`创建一个实体.
  `@NotNull Entity`
  RegionAccessor.`spawnEntity(@NotNull Location loc, @NotNull EntityType type, boolean randomizeData)`
  Creates a new entity at the given `Location`.
  返回变量类型为Entity的类型的org.bukkit中的方法
  修饰符和类型
  方法
  说明
  `@NotNull Class<? extends Entity>`
  EntityEffect.`getApplicable()`
  获取该效果能应用到的实体超类.
  `@NotNull List<Entity>`
  RegionAccessor.`getEntities()`
  Get a list of all entities in this RegionAccessor
  `@NotNull List<Entity>`
  World.`getEntities()`
  获取一个这个世界所有实体的列表.
  `@NotNull Collection<Entity>`
  RegionAccessor.`getEntitiesByClasses(@NotNull Class<?>... classes)`
  Get a collection of all entities in this RegionAccessor matching any of the given classes/interfaces
  `@NotNull Collection<Entity>`
  World.`getEntitiesByClasses(@NotNull Class<?>... classes)`
  获取一个在这个世界的所有与任一指定的类/接口相匹配的实体的集合.
  `@NotNull Collection<Entity>`
  World.`getNearbyEntities(@NotNull Location location, double x, double y, double z)`
  返回一个以这个位置为中心的包围着的所有实体的列表(译注:这个可能不太好理解，就是在这个位置，按指定的搜索范围，搜索这个范围里的所有实体).
  `@NotNull Collection<Entity>`
  World.`getNearbyEntities(@NotNull Location location, double x, double y, double z, @Nullable Predicate<? super Entity> filter)`
  Returns a list of entities within a bounding box centered around a Location.
  `@NotNull Collection<Entity>`
  World.`getNearbyEntities(@NotNull BoundingBox boundingBox)`
  Returns a list of entities within the given bounding box.
  `@NotNull Collection<Entity>`
  World.`getNearbyEntities(@NotNull BoundingBox boundingBox, @Nullable Predicate<? super Entity> filter)`
  Returns a list of entities within the given bounding box.
  `static @NotNull List<Entity>`
  Bukkit.`selectEntities(@NotNull CommandSender sender, @NotNull String selector)`
  以给定的原版选择器选择筛选实体.
  `@NotNull List<Entity>`
  Server.`selectEntities(@NotNull CommandSender sender, @NotNull String selector)`
  Selects entities using the given Vanilla selector.
  参数类型为Entity的org.bukkit中的方法
  修饰符和类型
  方法
  说明
  `boolean`
  World.`createExplosion(double x, double y, double z, float power, boolean setFire, boolean breakBlocks, @Nullable Entity source)`
  Creates explosion at given coordinates with given power and optionally setting blocks on fire or breaking blocks.
  `boolean`
  World.`createExplosion(@NotNull Location loc, float power, boolean setFire, boolean breakBlocks, @Nullable Entity source)`
  Creates explosion at given coordinates with given power and optionally setting blocks on fire or breaking blocks.
  `boolean`
  EntityEffect.`isApplicableTo(@NotNull Entity entity)`
  Checks if this effect is applicable to the given entity.
  `boolean`
  ServerTickManager.`isFrozen(@NotNull Entity entity)`
  Checks if a given entity is frozen.
  `void`
  World.`playSound(@NotNull Entity entity, @NotNull String sound, float volume, float pitch)`
  Play a Sound at the location of the provided entity in the World.
  `void`
  World.`playSound(@NotNull Entity entity, @NotNull String sound, @NotNull SoundCategory category, float volume, float pitch)`
  Play a Sound at the location of the provided entity in the World.
  `void`
  World.`playSound(@NotNull Entity entity, @NotNull String sound, @NotNull SoundCategory category, float volume, float pitch, long seed)`
  Play a Sound at the location of the provided entity in the World.
  `void`
  World.`playSound(@NotNull Entity entity, @NotNull Sound sound, float volume, float pitch)`
  Play a Sound at the location of the provided entity in the World.
  `void`
  World.`playSound(@NotNull Entity entity, @NotNull Sound sound, @NotNull SoundCategory category, float volume, float pitch)`
  Play a Sound at the location of the provided entity in the World.
  `void`
  World.`playSound(@NotNull Entity entity, @NotNull Sound sound, @NotNull SoundCategory category, float volume, float pitch, long seed)`
  Play a Sound at the location of the provided entity in the World.
  类型变量类型为Entity的org.bukkit中的方法参数
  修饰符和类型
  方法
  说明
  `@NotNull Collection<Entity>`
  World.`getNearbyEntities(@NotNull Location location, double x, double y, double z, @Nullable Predicate<? super Entity> filter)`
  Returns a list of entities within a bounding box centered around a Location.
  `@NotNull Collection<Entity>`
  World.`getNearbyEntities(@NotNull BoundingBox boundingBox, @Nullable Predicate<? super Entity> filter)`
  Returns a list of entities within the given bounding box.
  `boolean`
  EntityEffect.`isApplicableTo(@NotNull Class<? extends Entity> clazz)`
  Checks if this effect is applicable to the given entity class.
  `@Nullable RayTraceResult`
  World.`rayTrace(@NotNull Location start, @NotNull Vector direction, double maxDistance, @NotNull FluidCollisionMode fluidCollisionMode, boolean ignorePassableBlocks, double raySize, @Nullable Predicate<? super Entity> filter)`
  执行射线跟踪, 检查方块碰撞和实体碰撞.
  `@Nullable RayTraceResult`
  World.`rayTraceEntities(@NotNull Location start, @NotNull Vector direction, double maxDistance, double raySize, @Nullable Predicate<? super Entity> filter)`
  执行检查实体碰撞的射线跟踪.
  `@Nullable RayTraceResult`
  World.`rayTraceEntities(@NotNull Location start, @NotNull Vector direction, double maxDistance, @Nullable Predicate<? super Entity> filter)`
  执行检查实体碰撞的射线跟踪.
  参数类型为Entity的org.bukkit中的构造器
  限定符
  构造器
  说明
  ``
  `EntityDestination(@NotNull Entity entity)`

- ## org.bukkit.block中Entity的使用

  类型参数类型为Entity的org.bukkit.block中的类
  修饰符和类型
  接口
  说明
  `interface`
  `EntityBlockStorage<T extends Entity>`
  代表可存储实体的方块 (译注:或者称为实体容器方块).
  返回变量类型为Entity的类型的org.bukkit.block中的方法
  修饰符和类型
  方法
  说明
  `@NotNull Collection<Entity>`
  TrialSpawner.`getTrackedEntities()`
  Gets a list of entities this spawner is currently tracking.
  参数类型为Entity的org.bukkit.block中的方法
  修饰符和类型
  方法
  说明
  `@NotNull Collection<ItemStack>`
  Block.`getDrops(@NotNull ItemStack tool, @Nullable Entity entity)`
  返回当某实体使用某工具破坏此方块时掉落的物品.
  `boolean`
  TrialSpawner.`isTrackingEntity(@NotNull Entity entity)`
  Checks if this spawner is currently tracking the provided entity.
  `boolean`
  Bell.`ring(@Nullable Entity entity)`
  Ring this bell in the direction that the bell is facing.
  `boolean`
  Bell.`ring(@Nullable Entity entity, @Nullable BlockFace direction)`
  Ring this bell.
  `void`
  TrialSpawner.`startTrackingEntity(@NotNull Entity entity)`
  Force this spawner to start tracking the provided entity.
  `void`
  TrialSpawner.`stopTrackingEntity(@NotNull Entity entity)`
  Force this spawner to stop tracking the provided entity.

- ## org.bukkit.damage中Entity的使用

  返回Entity的org.bukkit.damage中的方法
  修饰符和类型
  方法
  说明
  `@Nullable Entity`
  DamageSource.`getCausingEntity()`
  Get the `Entity` that caused the damage to occur.
  `@Nullable Entity`
  DamageSource.`getDirectEntity()`
  Get the `Entity` that directly caused the damage.
  参数类型为Entity的org.bukkit.damage中的方法
  修饰符和类型
  方法
  说明
  `@NotNull DamageSource.Builder`
  DamageSource.Builder.`withCausingEntity(@NotNull Entity entity)`
  Set the `Entity` that caused the damage.
  `@NotNull DamageSource.Builder`
  DamageSource.Builder.`withDirectEntity(@NotNull Entity entity)`
  Set the `Entity` that directly inflicted the damage.

- ## org.bukkit.entity中Entity的使用

  org.bukkit.entity中Entity的子接口
  修饰符和类型
  接口
  说明
  `interface`
  `AbstractArrow`
  代表一支箭.
  `interface`
  `AbstractHorse`
  代表一个马基对象.
  `interface`
  `AbstractSkeleton`
  This interface defines or represents the abstract concept of skeleton-like entities on the server.
  `interface`
  `AbstractVillager`
  代表一个抽象村民NPC.
  `interface`
  `AbstractWindCharge`
  Represents a Wind Charge.
  `interface`
  `Ageable`
  代表一个有年龄的实体.
  `interface`
  `Allay`
  An Allay.
  `interface`
  `Ambient`
  代表环境生物(目前只有蝙蝠属于这一行列).
  `interface`
  `Animals`
  代表动物.
  `interface`
  `AreaEffectCloud`
  代表一片即将对处于其中的生物施加药水效果的区域效果云 (即喷溅药水使用后形成的雾).
  `interface`
  `Armadillo`
  Represents an Armadillo.
  `interface`
  `ArmorStand`
  `interface`
  `Arrow`
  表示一只箭矢.
  `interface`
  `Axolotl`
  An Axolotl.
  `interface`
  `Bat`
  表示一只蝙蝠.
  `interface`
  `Bee`
  代表蜜蜂.
  `interface`
  `Blaze`
  代表烈焰人怪物.
  `interface`
  `BlockDisplay`
  Represents a block display entity.
  `interface`
  `Boat`
  代表船实体
  `interface`
  `Bogged`
  Represents a Bogged Skeleton.
  `interface`
  `Boss`
  代表一个Boss实体.
  `interface`
  `Breedable`
  代表一个有年龄和繁殖能力的实体.
  `interface`
  `Breeze`
  Represents a Breeze.
  `interface`
  `BreezeWindCharge`
  Represents a Wind Charge.
  `interface`
  `Camel`
  代表一只骆驼
  `interface`
  `Cat`
  喵.
  `interface`
  `CaveSpider`
  代表蜘蛛(洞穴蜘蛛).
  `interface`
  `ChestBoat`
  A `Boat` with a chest.
  `interface`
  `ChestedHorse`
  代表一个可以携带物品的类马生物.
  `interface`
  `Chicken`
  代表鸡.
  `interface`
  `Cod`
  代表鳕鱼.
  `interface`
  `ComplexEntityPart`
  代表 `ComplexLivingEntity` 的一部分.
  `interface`
  `ComplexLivingEntity`
  代表复杂生物 --- 由多种较小实体部分组成 (目前只有末影龙属于此行列).
  `interface`
  `Cow`
  代表牛.
  `interface`
  `Creature`
  代表一类生物.
  `interface`
  `Creeper`
  代表苦力怕.
  `interface`
  `Damageable`
  表示一个有生命值和可以被伤害的实体(`Entity`)。
  `interface`
  `Display`
  Represents a display entity which is designed to only have a visual function.
  `interface`
  `Dolphin`
  这是海豚~
  `interface`
  `Donkey`
  代表驴 - `ChestedHorse`的变种.
  `interface`
  `DragonFireball`
  恶龙咆哮, 哇呜~(指末影龙火球)
  `interface`
  `Drowned`
  溺尸.
  `interface`
  `Egg`
  我创造了生命?
  `interface`
  `ElderGuardian`
  代表远古守卫者 - 一种`守卫者`.
  `interface`
  `EnderCrystal`
  一个末影水晶，能治疗附近的末影龙
  `interface`
  `EnderDragon`
  代表末影龙.
  `interface`
  `EnderDragonPart`
  代表末影龙的组成部分
  `interface`
  `Enderman`
  代表末影人.
  `interface`
  `Endermite`
  名副其实的小不点 - 末影螨.
  `interface`
  `EnderPearl`
  代表抛出的末影珍珠实体.
  `interface`
  `EnderSignal`
  代表抛出的末影之眼.
  `interface`
  `Enemy`
  Represents an Enemy
  `interface`
  `Evoker`
  代表唤魔者.
  `interface`
  `EvokerFangs`
  代表唤魔者召唤的尖牙.
  `interface`
  `ExperienceOrb`
  代表一个经验球.
  `interface`
  `Explosive`
  代表可爆炸的实体.
  `interface`
  `FallingBlock`
  代表一个下落方块.
  `interface`
  `Fireball`
  代表一个火球.
  `interface`
  `Firework`
  烟花火箭实体.
  `interface`
  `Fish`
  已过时。
  赞成使用 `FishHook`
  `interface`
  `FishHook`
  代表一个鱼钩.
  `interface`
  `Flying`
  代表能飞行的实体.
  `interface`
  `Fox`
  代表狐狸.
  `interface`
  `Frog`
  A Frog.
  `interface`
  `Ghast`
  代表恶魂.
  `interface`
  `Giant`
  代表巨人.
  `interface`
  `GlowItemFrame`
  A Glow Item Frame.
  `interface`
  `GlowSquid`
  A Glow Squid.
  `interface`
  `Goat`
  A Goat.
  `interface`
  `Golem`
  一个可以伤害敌人的傀儡.
  `interface`
  `Guardian`
  守卫海底遗迹的守卫者们.
  `interface`
  `Hanging`
  代表悬挂实体.
  `interface`
  `Hoglin`
  Represents a Hoglin.
  `interface`
  `Horse`
  代表一匹马.
  `interface`
  `HumanEntity`
  代表人类实体, 比如一个NPC或一名玩家
  `interface`
  `Husk`
  代表一具尸壳 - `Zombie`的变异体.
  `interface`
  `Illager`
  代表一种"灾厄村民" (亦称刌民), 包含卫道士、女巫等.
  `interface`
  `Illusioner`
  代表幻术师实体.
  `interface`
  `Interaction`
  Represents an entity designed to only record interactions.
  `interface`
  `IronGolem`
  村民守卫者——铁傀儡.
  `interface`
  `Item`
  代表掉落物实体.
  `interface`
  `ItemDisplay`
  Represents an item display entity.
  `interface`
  `ItemFrame`
  代表物品展示框.
  `interface`
  `LargeFireball`
  代表大的火球( `Fireball` ).
  `interface`
  `LeashHitch`
  跟随主人, 那是因为我被设定成这样啊~ (代表系在栅栏上的拴绳).
  `interface`
  `LightningStrike`
  代表雷击的实例，可能会或者不会造成伤害。
  `interface`
  `LingeringPotion`
  已过时。
  滞留状态仅取决于药水物品/lingering status depends on only on the potion item.
  `interface`
  `LivingEntity`
  代表一个生物实体，比如一只怪物或一名玩家.
  `interface`
  `Llama`
  表示一只羊驼.
  `interface`
  `LlamaSpit`
  代表羊驼唾沫.
  `interface`
  `MagmaCube`
  代表岩浆怪.
  `interface`
  `Marker`
  A Marker entity, exists only on the server.
  `interface`
  `Minecart`
  代表矿车实体.
  `interface`
  `Mob`
  Represents a Mob.
  `interface`
  `Monster`
  代表怪物.
  `interface`
  `Mule`
  代表骡子 - `ChestedHorse` 的变种.
  `interface`
  `MushroomCow`
  代表哞菇( `Cow` ).
  `interface`
  `NPC`
  代表非玩家角色.
  `interface`
  `Ocelot`
  代表豹猫.
  `interface`
  `OminousItemSpawner`
  Represents an ominous item spawner.
  `interface`
  `Painting`
  代表画.
  `interface`
  `Panda`
  代表熊猫.
  `interface`
  `Parrot`
  代表鹦鹉.
  `interface`
  `Phantom`
  代表幻翼.
  `interface`
  `Pig`
  代表猪.
  `interface`
  `Piglin`
  Represents a Piglin.
  `interface`
  `PiglinAbstract`
  Piglin / Piglin Brute.
  `interface`
  `PiglinBrute`
  Represents a Piglin Brute.
  `interface`
  `PigZombie`
  代表僵尸猪人.
  `interface`
  `Pillager`
  掠夺者实体.
  `interface`
  `Player`
  玩家对象
  `interface`
  `PolarBear`
  代表北极熊.
  `interface`
  `Projectile`
  表示可被射击实体的概念
  `interface`
  `PufferFish`
  Represents a puffer fish.
  `interface`
  `Rabbit`
  `interface`
  `Raider`
  `interface`
  `Ravager`
  劫掠兽实体.
  `interface`
  `Salmon`
  Represents a salmon fish.
  `interface`
  `Sheep`
  代表羊.
  `interface`
  `Shulker`
  `interface`
  `ShulkerBullet`
  `interface`
  `Silverfish`
  代表蠹虫.
  `interface`
  `SizedFireball`
  Represents a sized fireball.
  `interface`
  `Skeleton`
  代表骷髅.
  `interface`
  `SkeletonHorse`
  Represents a SkeletonHorse - variant of `AbstractHorse`.
  `interface`
  `Slime`
  代表史莱姆.
  `interface`
  `SmallFireball`
  代表小的火球( `Fireball` ).
  `interface`
  `Sniffer`
  Represents a Sniffer.
  `interface`
  `Snowball`
  代表雪球.
  `interface`
  `Snowman`
  代表雪人实体.
  `interface`
  `SpectralArrow`
  Represents a spectral arrow.
  `interface`
  `Spellcaster`
  代表会施法的灾厄村民 (目前只有唤魔者和幻术师).
  `interface`
  `Spider`
  代表蜘蛛.
  `interface`
  `SplashPotion`
  已过时。
  splash status depends on only on the potion item.
  `interface`
  `Squid`
  代表鱿鱼.
  `interface`
  `Steerable`
  Represents an entity which may be saddled, ridden and steered using an item.
  `interface`
  `Stray`
  Represents a Stray - variant of `AbstractSkeleton`.
  `interface`
  `Strider`
  Represents a Strider.
  `interface`
  `Tadpole`
  A baby `Frog`.
  `interface`
  `Tameable`
  `interface`
  `TextDisplay`
  Represents a text display entity.
  `interface`
  `ThrowableProjectile`
  `interface`
  `ThrownExpBottle`
  代表抛出的附魔之瓶.
  `interface`
  `ThrownPotion`
  代表一个被抛出的药水瓶.
  `interface`
  `TippedArrow`
  已过时。
  tipped status depends only on base potion type not being UNCRAFTABLE and effects being empty.
  `interface`
  `TNTPrimed`
  Represents a Primed TNT.
  `interface`
  `TraderLlama`
  Represents a trader Llama.
  `interface`
  `Trident`
  代表被抛出的三叉戟.
  `interface`
  `TropicalFish`
  代表热带鱼.
  `interface`
  `Turtle`
  Represents a turtle.
  `interface`
  `Vehicle`
  Represents a vehicle entity.
  `interface`
  `Vex`
  恼鬼.
  `interface`
  `Villager`
  Represents a villager NPC
  `interface`
  `Vindicator`
  代表卫道士.
  `interface`
  `WanderingTrader`
  Represents a wandering trader NPC
  `interface`
  `Warden`
  监守者.
  `interface`
  `WaterMob`
  代表海洋生物.
  `interface`
  `WindCharge`
  Represents a Wind Charge.
  `interface`
  `Witch`
  代表女巫.
  `interface`
  `Wither`
  代表凋零boss.
  `interface`
  `WitherSkeleton`
  Represents a WitherSkeleton - variant of `AbstractSkeleton`.
  `interface`
  `WitherSkull`
  代表凋零之首.
  `interface`
  `Wolf`
  代表狼.
  `interface`
  `Zoglin`
  Represents a Zoglin.
  `interface`
  `Zombie`
  代表僵尸.
  `interface`
  `ZombieHorse`
  Represents a ZombieHorse - variant of `AbstractHorse`.
  `interface`
  `ZombieVillager`
  Represents a `Zombie` which was once a `Villager`.
  返回Entity的org.bukkit.entity中的方法
  修饰符和类型
  方法
  说明
  `@NotNull Entity`
  Entity.`copy()`
  Creates a copy of this entity and all its data.
  `@NotNull Entity`
  Entity.`copy(@NotNull Location to)`
  Creates a copy of this entity and all its data.
  `@NotNull Entity`
  EntitySnapshot.`createEntity(@NotNull Location to)`
  Creates an entity using this template and spawns it at the provided location.
  `@NotNull Entity`
  EntitySnapshot.`createEntity(@NotNull World world)`
  Creates an entity using this template.
  `@Nullable Entity`
  FishHook.`getHookedEntity()`
  Get the entity hooked by this fish hook.
  `@Nullable Entity`
  Creeper.`getIgniter()`
  获取点燃此苦力怕的实体（如存在）.
  `@NotNull Entity`
  LivingEntity.`getLeashHolder()`
  获取当前牵引此实体的实体.
  `@Nullable Entity`
  Entity.`getPassenger()`
  已过时。
  实体可能有多名乘客.
  `@Nullable Entity`
  HumanEntity.`getShoulderEntityLeft()`
  已过时。
  Bukkit中目前还没有关于序列化实体的语义(格式)的良好定义.
  `@Nullable Entity`
  HumanEntity.`getShoulderEntityRight()`
  已过时。
  Bukkit中目前还没有关于序列化实体的语义(格式)的良好定义.
  `@Nullable Entity`
  TNTPrimed.`getSource()`
  Gets the source of this primed TNT.
  `@Nullable Entity`
  Player.`getSpectatorTarget()`
  获取旁观者模式下镜头跟随的实体.
  `@Nullable Entity`
  ShulkerBullet.`getTarget()`
  Retrieve the target of this bullet.
  `@Nullable Entity`
  Frog.`getTongueTarget()`
  Gets the tongue target of this frog.
  `@Nullable Entity`
  Entity.`getVehicle()`
  获取实体所在的载具, 若没有则返回null.
  返回变量类型为Entity的类型的org.bukkit.entity中的方法
  修饰符和类型
  方法
  说明
  `@Nullable Class<? extends Entity>`
  EntityType.`getEntityClass()`
  `@NotNull List<Entity>`
  Entity.`getNearbyEntities(double x, double y, double z)`
  返回以此实体为中心的边界框内的所有实体.
  `@NotNull List<Entity>`
  Entity.`getPassengers()`
  获取载具的乘客列表.
  参数类型为Entity的org.bukkit.entity中的方法
  修饰符和类型
  方法
  说明
  `boolean`
  Entity.`addPassenger(@NotNull Entity passenger)`
  添加一名乘客.
  `void`
  LivingEntity.`attack(@NotNull Entity target)`
  让此实体对指定实体进行近战攻击。
  `boolean`
  Player.`canSee(@NotNull Entity entity)`
  Checks to see if an entity has been visually hidden from this player.
  `void`
  Warden.`clearAnger(@NotNull Entity entity)`
  Clears the anger level of this warden.
  `void`
  Damageable.`damage(double amount, @Nullable Entity source)`
  强制某实体伤害这个`实体`.
  `int`
  Warden.`getAnger(@NotNull Entity entity)`
  Gets the anger level of this warden.
  `boolean`
  LivingEntity.`hasLineOfSight(@NotNull Entity other)`
  检查生物实体是否阻挡另一个的视线.
  `void`
  Player.`hideEntity(@NotNull Plugin plugin, @NotNull Entity entity)`
  从视觉上隐藏一个实体.
  `void`
  Creeper.`ignite(@NotNull Entity entity)`
  点燃此苦力怕, 开始其爆炸计时.
  `void`
  Warden.`increaseAnger(@NotNull Entity entity, int increase)`
  Increases the anger level of this warden.
  `void`
  Player.`playSound(@NotNull Entity entity, @NotNull String sound, float volume, float pitch)`
  Play a sound for a player at the location of the entity.
  `void`
  Player.`playSound(@NotNull Entity entity, @NotNull String sound, @NotNull SoundCategory category, float volume, float pitch)`
  Play a sound for a player at the location of the entity.
  `void`
  Player.`playSound(@NotNull Entity entity, @NotNull String sound, @NotNull SoundCategory category, float volume, float pitch, long seed)`
  Play a sound for a player at the location of the entity.
  `void`
  Player.`playSound(@NotNull Entity entity, @NotNull Sound sound, float volume, float pitch)`
  Play a sound for a player at the location of the entity.
  `void`
  Player.`playSound(@NotNull Entity entity, @NotNull Sound sound, @NotNull SoundCategory category, float volume, float pitch)`
  Play a sound for a player at the location of the entity.
  `void`
  Player.`playSound(@NotNull Entity entity, @NotNull Sound sound, @NotNull SoundCategory category, float volume, float pitch, long seed)`
  Play a sound for a player at the location of the entity.
  `boolean`
  Entity.`removePassenger(@NotNull Entity passenger)`
  移除一名乘客.
  `void`
  Player.`sendBlockDamage(@NotNull Location loc, float progress, @NotNull Entity source)`
  Send block damage.
  `void`
  Warden.`setAnger(@NotNull Entity entity, int anger)`
  Sets the anger level of this warden.
  `void`
  FishHook.`setHookedEntity(@Nullable Entity entity)`
  Set the entity hooked by this fish hook.
  `boolean`
  LivingEntity.`setLeashHolder(@Nullable Entity holder)`
  设置握持拴绳的实体.
  `boolean`
  Entity.`setPassenger(@NotNull Entity passenger)`
  已过时。
  实体可能有多名乘客.
  `void`
  HumanEntity.`setShoulderEntityLeft(@Nullable Entity entity)`
  已过时。
  Bukkit中目前还没有关于序列化实体的语义(格式)的良好定义.
  `void`
  HumanEntity.`setShoulderEntityRight(@Nullable Entity entity)`
  已过时。
  Bukkit中目前还没有关于序列化实体的语义(格式)的良好定义.
  `void`
  TNTPrimed.`setSource(@Nullable Entity source)`
  Sets the source of this primed TNT.
  `void`
  Player.`setSpectatorTarget(@Nullable Entity entity)`
  设置模式下镜头跟随的实体.
  `void`
  ShulkerBullet.`setTarget(@Nullable Entity target)`
  Sets the target of this bullet
  `void`
  Frog.`setTongueTarget(@Nullable Entity target)`
  Sets the tongue target of this frog.
  `void`
  Player.`showEntity(@NotNull Plugin plugin, @NotNull Entity entity)`
  Allows this player to see an entity that was previously hidden.
  `boolean`
  Entity.`teleport(@NotNull Entity destination)`
  将此实体传送到目标实体.
  `boolean`
  Entity.`teleport(@NotNull Entity destination, @NotNull PlayerTeleportEvent.TeleportCause cause)`
  将此实体传送到目标实体.
  `boolean`
  Enderman.`teleportTowards(@NotNull Entity entity)`
  Randomly teleports the Enderman towards the given `entity`.

- ## org.bukkit.entity.minecart中Entity的使用

  org.bukkit.entity.minecart中Entity的子接口
  修饰符和类型
  接口
  说明
  `interface`
  `CommandMinecart`
  代表命令方块矿车.
  `interface`
  `ExplosiveMinecart`
  代表TNT矿车，可以被引爆.
  `interface`
  `HopperMinecart`
  代表漏斗矿车.
  `interface`
  `PoweredMinecart`
  代表动力矿车.当玩家往动力矿车里放`燃料`后它就会自己移动.
  `interface`
  `RideableMinecart`
  代表可乘坐的矿车.
  `interface`
  `SpawnerMinecart`
  代表有`刷怪箱`在里面的矿车（即刷怪箱矿车）.
  `interface`
  `StorageMinecart`
  代表运输矿车，你可以使用`InventoryHolder`里的方法来访问.

- ## org.bukkit.event.block中Entity的使用

  返回Entity的org.bukkit.event.block中的方法
  修饰符和类型
  方法
  说明
  `@Nullable Entity`
  BellRingEvent.`getEntity()`
  Get the `Entity` that rang the bell (if there was one).
  `@Nullable Entity`
  BlockReceiveGameEvent.`getEntity()`
  获取触发此事件的实体(如果存在).
  `@NotNull Entity`
  BlockShearEntityEvent.`getEntity()`
  获取被剪的实体.
  `@Nullable Entity`
  CauldronLevelChangeEvent.`getEntity()`
  获取触发本事件的实体,值有可能为null.
  `@NotNull Entity`
  EntityBlockFormEvent.`getEntity()`
  获取被建造的实体.
  `@Nullable Entity`
  BlockIgniteEvent.`getIgnitingEntity()`
  获取点燃方块的实体.
  `@Nullable Entity`
  TNTPrimeEvent.`getPrimingEntity()`
  Get the entity that caused the TNT to be primed.
  参数类型为Entity的org.bukkit.event.block中的构造器
  限定符
  构造器
  说明
  ``
  `BellRingEvent(@NotNull Block theBlock, @NotNull BlockFace direction, @Nullable Entity entity)`
  ``
  `BlockIgniteEvent(@NotNull Block theBlock, @NotNull BlockIgniteEvent.IgniteCause cause, @Nullable Entity ignitingEntity)`
  ``
  `BlockIgniteEvent(@NotNull Block theBlock, @NotNull BlockIgniteEvent.IgniteCause cause, @Nullable Entity ignitingEntity, @Nullable Block ignitingBlock)`
  ``
  `BlockReceiveGameEvent(@NotNull GameEvent event, @NotNull Block block, @Nullable Entity entity)`
  ``
  `BlockShearEntityEvent(@NotNull Block dispenser, @NotNull Entity sheared, @NotNull ItemStack tool)`
  ``
  `CauldronLevelChangeEvent(@NotNull Block block, @Nullable Entity entity, @NotNull CauldronLevelChangeEvent.ChangeReason reason, @NotNull BlockState newBlock)`
  ``
  `EntityBlockFormEvent(@NotNull Entity entity, @NotNull Block block, @NotNull BlockState blockstate)`
  ``
  `TNTPrimeEvent(@NotNull Block block, @NotNull TNTPrimeEvent.PrimeCause igniteCause, @Nullable Entity primingEntity, @Nullable Block primingBlock)`

- ## org.bukkit.event.entity中Entity的使用

  声明为Entity的org.bukkit.event.entity中的字段
  修饰符和类型
  字段
  说明
  `protected Entity`
  EntityEvent.`entity`
  返回Entity的org.bukkit.event.entity中的方法
  修饰符和类型
  方法
  说明
  `@NotNull Entity`
  EntityCombustByEntityEvent.`getCombuster()`
  返回造成燃烧的实体.
  `@NotNull Entity`
  EntityDamageByEntityEvent.`getDamager()`
  返回造成这次伤害的实体
  `@NotNull Entity`
  EntityDismountEvent.`getDismounted()`
  Gets the entity which will no longer be ridden.
  `@NotNull Entity`
  EntityEvent.`getEntity()`
  返回这个事件所涉及的实体.
  `@NotNull Entity`
  PlayerLeashEntityEvent.`getEntity()`
  Returns the entity being leashed.
  `@Nullable Entity`
  ProjectileHitEvent.`getHitEntity()`
  Gets the entity that was hit, if it was an entity that was hit.
  `@NotNull Entity`
  PlayerLeashEntityEvent.`getLeashHolder()`
  Returns the entity that is holding the leash.
  `@NotNull Entity`
  EntityMountEvent.`getMount()`
  Gets the entity which will be ridden.
  `@NotNull Entity`
  EntityShootBowEvent.`getProjectile()`
  Gets the projectile which will be launched by this event
  `@NotNull Entity`
  EntityKnockbackByEntityEvent.`getSourceEntity()`
  Get the entity that has caused knockback to the defender.
  `@Nullable Entity`
  EntityTargetEvent.`getTarget()`
  Get the entity that this is targeting.
  `@Nullable Entity`
  PigZombieAngerEvent.`getTarget()`
  Gets the entity (if any) which triggered this anger update.
  `@NotNull Entity`
  EntityTransformEvent.`getTransformedEntity()`
  获取原实体将转变成的实体.
  返回变量类型为Entity的类型的org.bukkit.event.entity中的方法
  修饰符和类型
  方法
  说明
  `@NotNull List<Entity>`
  EntityTransformEvent.`getTransformedEntities()`
  获取原实体将转变成的实体.
  参数类型为Entity的org.bukkit.event.entity中的方法
  修饰符和类型
  方法
  说明
  `void`
  EntityShootBowEvent.`setProjectile(@NotNull Entity projectile)`
  Replaces the projectile which will be launched
  `void`
  EntityTargetEvent.`setTarget(@Nullable Entity target)`
  Set the entity that you want the mob to target instead.
  `void`
  EntityTargetLivingEntityEvent.`setTarget(@Nullable Entity target)`
  Set the Entity that you want the mob to target.
  参数类型为Entity的org.bukkit.event.entity中的构造器
  限定符
  构造器
  说明
  ``
  `EntityAirChangeEvent(@NotNull Entity what, int amount)`
  ``
  `EntityChangeBlockEvent(@NotNull Entity what, @NotNull Block block, @NotNull BlockData to)`
  ``
  `EntityCombustByBlockEvent(@Nullable Block combuster, @NotNull Entity combustee, float duration)`
  ``
  `EntityCombustByBlockEvent(@Nullable Block combuster, @NotNull Entity combustee, int duration)`
  已过时。
  ``
  `EntityCombustByEntityEvent(@NotNull Entity combuster, @NotNull Entity combustee, float duration)`
  ``
  `EntityCombustByEntityEvent(@NotNull Entity combuster, @NotNull Entity combustee, int duration)`
  已过时。
  ``
  `EntityCombustEvent(@NotNull Entity combustee, float duration)`
  ``
  `EntityCombustEvent(@NotNull Entity combustee, int duration)`
  已过时。
  ``
  `EntityDamageByBlockEvent(@Nullable Block damager, @NotNull Entity damagee, @NotNull EntityDamageEvent.DamageCause cause, double damage)`
  已过时, 待删除: 此 API 元素将从以后的版本中删除。
  ``
  `EntityDamageByBlockEvent(@Nullable Block damager, @NotNull Entity damagee, @NotNull EntityDamageEvent.DamageCause cause, @NotNull Map<EntityDamageEvent.DamageModifier,Double> modifiers, @NotNull Map<EntityDamageEvent.DamageModifier,? extends Function<? super Double,Double>> modifierFunctions)`
  已过时, 待删除: 此 API 元素将从以后的版本中删除。
  ``
  `EntityDamageByBlockEvent(@Nullable Block damager, @Nullable BlockState damagerState, @NotNull Entity damagee, @NotNull EntityDamageEvent.DamageCause cause, @NotNull DamageSource damageSource, double damage)`
  ``
  `EntityDamageByBlockEvent(@Nullable Block damager, @Nullable BlockState damagerState, @NotNull Entity damagee, @NotNull EntityDamageEvent.DamageCause cause, @NotNull DamageSource damageSource, @NotNull Map<EntityDamageEvent.DamageModifier,Double> modifiers, @NotNull Map<EntityDamageEvent.DamageModifier,? extends Function<? super Double,Double>> modifierFunctions)`
  ``
  `EntityDamageByEntityEvent(@NotNull Entity damager, @NotNull Entity damagee, @NotNull EntityDamageEvent.DamageCause cause, double damage)`
  已过时, 待删除: 此 API 元素将从以后的版本中删除。
  ``
  `EntityDamageByEntityEvent(@NotNull Entity damager, @NotNull Entity damagee, @NotNull EntityDamageEvent.DamageCause cause, @NotNull Map<EntityDamageEvent.DamageModifier,Double> modifiers, @NotNull Map<EntityDamageEvent.DamageModifier,? extends Function<? super Double,Double>> modifierFunctions)`
  已过时, 待删除: 此 API 元素将从以后的版本中删除。
  ``
  `EntityDamageByEntityEvent(@NotNull Entity damager, @NotNull Entity damagee, @NotNull EntityDamageEvent.DamageCause cause, @NotNull DamageSource damageSource, double damage)`
  ``
  `EntityDamageByEntityEvent(@NotNull Entity damager, @NotNull Entity damagee, @NotNull EntityDamageEvent.DamageCause cause, @NotNull DamageSource damageSource, @NotNull Map<EntityDamageEvent.DamageModifier,Double> modifiers, @NotNull Map<EntityDamageEvent.DamageModifier,? extends Function<? super Double,Double>> modifierFunctions)`
  ``
  `EntityDamageEvent(@NotNull Entity damagee, @NotNull EntityDamageEvent.DamageCause cause, double damage)`
  已过时, 待删除: 此 API 元素将从以后的版本中删除。
  ``
  `EntityDamageEvent(@NotNull Entity damagee, @NotNull EntityDamageEvent.DamageCause cause, @NotNull Map<EntityDamageEvent.DamageModifier,Double> modifiers, @NotNull Map<EntityDamageEvent.DamageModifier,? extends Function<? super Double,Double>> modifierFunctions)`
  已过时, 待删除: 此 API 元素将从以后的版本中删除。
  ``
  `EntityDamageEvent(@NotNull Entity damagee, @NotNull EntityDamageEvent.DamageCause cause, @NotNull DamageSource damageSource, double damage)`
  ``
  `EntityDamageEvent(@NotNull Entity damagee, @NotNull EntityDamageEvent.DamageCause cause, @NotNull DamageSource damageSource, @NotNull Map<EntityDamageEvent.DamageModifier,Double> modifiers, @NotNull Map<EntityDamageEvent.DamageModifier,? extends Function<? super Double,Double>> modifierFunctions)`
  ``
  `EntityDismountEvent(@NotNull Entity what, @NotNull Entity dismounted)`
  ``
  `EntityDropItemEvent(@NotNull Entity entity, @NotNull Item drop)`
  ``
  `EntityEnterBlockEvent(@NotNull Entity entity, @NotNull Block block)`
  ``
  `EntityEvent(@NotNull Entity what)`
  ``
  `EntityExplodeEvent(@NotNull Entity what, @NotNull Location location, @NotNull List<Block> blocks, float yield, @NotNull ExplosionResult result)`
  ``
  `EntityInteractEvent(@NotNull Entity entity, @NotNull Block block)`
  ``
  `EntityKnockbackByEntityEvent(@NotNull LivingEntity entity, @NotNull Entity source, @NotNull EntityKnockbackEvent.KnockbackCause cause, double force, @NotNull Vector rawKnockback, @NotNull Vector knockback)`
  ``
  `EntityMountEvent(@NotNull Entity what, @NotNull Entity mount)`
  ``
  `EntityPlaceEvent(@NotNull Entity entity, @Nullable Player player, @NotNull Block block, @NotNull BlockFace blockFace)`
  已过时。
  ``
  `EntityPlaceEvent(@NotNull Entity entity, @Nullable Player player, @NotNull Block block, @NotNull BlockFace blockFace, @NotNull EquipmentSlot hand)`
  ``
  `EntityPortalEnterEvent(@NotNull Entity entity, @NotNull Location location)`
  ``
  `EntityPortalEvent(@NotNull Entity entity, @NotNull Location from, @Nullable Location to)`
  ``
  `EntityPortalEvent(@NotNull Entity entity, @NotNull Location from, @Nullable Location to, int searchRadius)`
  ``
  `EntityPortalEvent(@NotNull Entity entity, @NotNull Location from, @Nullable Location to, int searchRadius, boolean canCreatePortal, int creationRadius)`
  ``
  `EntityPortalExitEvent(@NotNull Entity entity, @NotNull Location from, @NotNull Location to, @NotNull Vector before, @NotNull Vector after)`
  ``
  `EntityPoseChangeEvent(@NotNull Entity who, @NotNull Pose pose)`
  ``
  `EntityRegainHealthEvent(@NotNull Entity entity, double amount, @NotNull EntityRegainHealthEvent.RegainReason regainReason)`
  ``
  `EntityRemoveEvent(@NotNull Entity what, @NotNull EntityRemoveEvent.Cause cause)`
  ``
  `EntityShootBowEvent(@NotNull LivingEntity shooter, @Nullable ItemStack bow, @Nullable ItemStack consumable, @NotNull Entity projectile, @NotNull EquipmentSlot hand, float force, boolean consumeItem)`
  ``
  `EntitySpawnEvent(@NotNull Entity spawnee)`
  ``
  `EntityTargetEvent(@NotNull Entity entity, @Nullable Entity target, @NotNull EntityTargetEvent.TargetReason reason)`
  ``
  `EntityTargetLivingEntityEvent(@NotNull Entity entity, @Nullable LivingEntity target, @Nullable EntityTargetEvent.TargetReason reason)`
  ``
  `EntityTeleportEvent(@NotNull Entity what, @NotNull Location from, @Nullable Location to)`
  ``
  `EntityTransformEvent(@NotNull Entity original, @NotNull List<Entity> convertedList, @NotNull EntityTransformEvent.TransformReason transformReason)`
  ``
  `EntityUnleashEvent(@NotNull Entity entity, @NotNull EntityUnleashEvent.UnleashReason reason)`
  ``
  `ExpBottleEvent(@NotNull ThrownExpBottle bottle, @Nullable Entity hitEntity, @Nullable Block hitBlock, @Nullable BlockFace hitFace, int exp)`
  ``
  `ExplosionPrimeEvent(@NotNull Entity what, float radius, boolean fire)`
  ``
  `LingeringPotionSplashEvent(@NotNull ThrownPotion potion, @Nullable Entity hitEntity, @Nullable Block hitBlock, @Nullable BlockFace hitFace, @NotNull AreaEffectCloud entity)`
  ``
  `PigZombieAngerEvent(@NotNull PigZombie pigZombie, @Nullable Entity target, int newAnger)`
  ``
  `PlayerLeashEntityEvent(@NotNull Entity what, @NotNull Entity leashHolder, @NotNull Player leasher)`
  已过时。
  ``
  `PlayerLeashEntityEvent(@NotNull Entity what, @NotNull Entity leashHolder, @NotNull Player leasher, @NotNull EquipmentSlot hand)`
  ``
  `PotionSplashEvent(@NotNull ThrownPotion potion, @Nullable Entity hitEntity, @Nullable Block hitBlock, @Nullable BlockFace hitFace, @NotNull Map<LivingEntity,Double> affectedEntities)`
  ``
  `ProjectileHitEvent(@NotNull Projectile projectile, @Nullable Entity hitEntity)`
  ``
  `ProjectileHitEvent(@NotNull Projectile projectile, @Nullable Entity hitEntity, @Nullable Block hitBlock)`
  ``
  `ProjectileHitEvent(@NotNull Projectile projectile, @Nullable Entity hitEntity, @Nullable Block hitBlock, @Nullable BlockFace hitFace)`
  ``
  `ProjectileLaunchEvent(@NotNull Entity what)`
  ``
  `SpawnerSpawnEvent(@NotNull Entity spawnee, @NotNull CreatureSpawner spawner)`
  ``
  `TrialSpawnerSpawnEvent(@NotNull Entity spawnee, @NotNull TrialSpawner spawner)`
  类型变量类型为Entity的org.bukkit.event.entity中的构造器参数
  限定符
  构造器
  说明
  ``
  `EntityTransformEvent(@NotNull Entity original, @NotNull List<Entity> convertedList, @NotNull EntityTransformEvent.TransformReason transformReason)`

- ## org.bukkit.event.hanging中Entity的使用

  返回Entity的org.bukkit.event.hanging中的方法
  修饰符和类型
  方法
  说明
  `@Nullable Entity`
  HangingBreakByEntityEvent.`getRemover()`
  获取移除这个悬挂实体的实体.
  参数类型为Entity的org.bukkit.event.hanging中的构造器
  限定符
  构造器
  说明
  ``
  `HangingBreakByEntityEvent(@NotNull Hanging hanging, @Nullable Entity remover)`
  ``
  `HangingBreakByEntityEvent(@NotNull Hanging hanging, @Nullable Entity remover, HangingBreakEvent.RemoveCause cause)`

- ## org.bukkit.event.player中Entity的使用

  声明为Entity的org.bukkit.event.player中的字段
  修饰符和类型
  字段
  说明
  `protected Entity`
  PlayerInteractEntityEvent.`clickedEntity`
  返回Entity的org.bukkit.event.player中的方法
  修饰符和类型
  方法
  说明
  `@Nullable Entity`
  PlayerFishEvent.`getCaught()`
  Gets the entity caught by the player.
  `@NotNull Entity`
  PlayerBucketEntityEvent.`getEntity()`
  Gets the `Entity` being put into the bucket.
  `@NotNull Entity`
  PlayerHideEntityEvent.`getEntity()`
  Gets the entity which has been hidden from the player.
  `@NotNull Entity`
  PlayerShearEntityEvent.`getEntity()`
  获取玩家正在剪切的实体.
  `@NotNull Entity`
  PlayerShowEntityEvent.`getEntity()`
  Gets the entity which has been shown to the player.
  `@NotNull Entity`
  PlayerInteractEntityEvent.`getRightClicked()`
  获取被玩家点击的实体.
  参数类型为Entity的org.bukkit.event.player中的构造器
  限定符
  构造器
  说明
  ``
  `PlayerBucketEntityEvent(@NotNull Player player, @NotNull Entity entity, @NotNull ItemStack originalBucket, @NotNull ItemStack entityBucket, @NotNull EquipmentSlot hand)`
  ``
  `PlayerFishEvent(@NotNull Player player, @Nullable Entity entity, @NotNull FishHook hookEntity, @NotNull PlayerFishEvent.State state)`
  ``
  `PlayerFishEvent(@NotNull Player player, @Nullable Entity entity, @NotNull FishHook hookEntity, @Nullable EquipmentSlot hand, @NotNull PlayerFishEvent.State state)`
  ``
  `PlayerHideEntityEvent(@NotNull Player who, @NotNull Entity entity)`
  ``
  `PlayerInteractAtEntityEvent(@NotNull Player who, @NotNull Entity clickedEntity, @NotNull Vector position)`
  ``
  `PlayerInteractAtEntityEvent(@NotNull Player who, @NotNull Entity clickedEntity, @NotNull Vector position, @NotNull EquipmentSlot hand)`
  ``
  `PlayerInteractEntityEvent(@NotNull Player who, @NotNull Entity clickedEntity)`
  ``
  `PlayerInteractEntityEvent(@NotNull Player who, @NotNull Entity clickedEntity, @NotNull EquipmentSlot hand)`
  ``
  `PlayerShearEntityEvent(@NotNull Player who, @NotNull Entity what)`
  已过时。
  ``
  `PlayerShearEntityEvent(@NotNull Player who, @NotNull Entity what, @NotNull ItemStack item, @NotNull EquipmentSlot hand)`
  ``
  `PlayerShowEntityEvent(@NotNull Player who, @NotNull Entity entity)`
  ``
  `PlayerUnleashEntityEvent(@NotNull Entity entity, @NotNull Player player)`
  已过时。
  ``
  `PlayerUnleashEntityEvent(@NotNull Entity entity, @NotNull Player player, @NotNull EquipmentSlot hand)`

- ## org.bukkit.event.vehicle中Entity的使用

  返回Entity的org.bukkit.event.vehicle中的方法
  修饰符和类型
  方法
  说明
  `@Nullable Entity`
  VehicleDamageEvent.`getAttacker()`
  获取攻击这个载具的实体.
  `@Nullable Entity`
  VehicleDestroyEvent.`getAttacker()`
  获取损毁载具的实体，可能为null.
  `@NotNull Entity`
  VehicleEnterEvent.`getEntered()`
  获取进入到载具中的实体.
  `@NotNull Entity`
  VehicleEntityCollisionEvent.`getEntity()`
  参数类型为Entity的org.bukkit.event.vehicle中的构造器
  限定符
  构造器
  说明
  ``
  `VehicleDamageEvent(@NotNull Vehicle vehicle, @Nullable Entity attacker, double damage)`
  ``
  `VehicleDestroyEvent(@NotNull Vehicle vehicle, @Nullable Entity attacker)`
  ``
  `VehicleEnterEvent(@NotNull Vehicle vehicle, @NotNull Entity entered)`
  ``
  `VehicleEntityCollisionEvent(@NotNull Vehicle vehicle, @NotNull Entity entity)`

- ## org.bukkit.event.world中Entity的使用

  返回Entity的org.bukkit.event.world中的方法
  修饰符和类型
  方法
  说明
  `@Nullable Entity`
  GenericGameEvent.`getEntity()`
  获取触发此事件的实体, 若存在.
  `@Nullable Entity`
  LootGenerateEvent.`getEntity()`
  获取生成战利品所用的实体 (若适用).
  `@Nullable Entity`
  PortalCreateEvent.`getEntity()`
  返回导致此传送门创建的实体 (若存在).
  返回变量类型为Entity的类型的org.bukkit.event.world中的方法
  修饰符和类型
  方法
  说明
  `@NotNull List<Entity>`
  EntitiesLoadEvent.`getEntities()`
  获取被加载的实体.
  `@NotNull List<Entity>`
  EntitiesUnloadEvent.`getEntities()`
  获取被卸载的实体.
  参数类型为Entity的org.bukkit.event.world中的构造器
  限定符
  构造器
  说明
  ``
  `GenericGameEvent(@NotNull GameEvent event, @NotNull Location location, @Nullable Entity entity, int radius, boolean isAsync)`
  ``
  `LootGenerateEvent(@NotNull World world, @Nullable Entity entity, @Nullable InventoryHolder inventoryHolder, @NotNull LootTable lootTable, @NotNull LootContext lootContext, @NotNull List<ItemStack> items, boolean plugin)`
  ``
  `PortalCreateEvent(@NotNull List<BlockState> blocks, @NotNull World world, @Nullable Entity entity, @NotNull PortalCreateEvent.CreateReason reason)`
  类型变量类型为Entity的org.bukkit.event.world中的构造器参数
  限定符
  构造器
  说明
  ``
  `EntitiesLoadEvent(@NotNull Chunk chunk, @NotNull List<Entity> entities)`
  ``
  `EntitiesUnloadEvent(@NotNull Chunk chunk, @NotNull List<Entity> entities)`

- ## org.bukkit.inventory中Entity的使用

  返回Entity的org.bukkit.inventory中的方法
  修饰符和类型
  方法
  说明
  `@Nullable Entity`
  EntityEquipment.`getHolder()`
  获取此EntityEquipment所属的实体.
  参数类型为Entity的org.bukkit.inventory中的方法
  修饰符和类型
  方法
  说明
  `@NotNull ItemStack`
  ItemFactory.`enchantItem(@NotNull Entity entity, @NotNull ItemStack item, int level, boolean allowTreasures)`
  Enchants the given item at the provided level.

- ## org.bukkit.loot中Entity的使用

  返回Entity的org.bukkit.loot中的方法
  修饰符和类型
  方法
  说明
  `@Nullable Entity`
  LootContext.`getLootedEntity()`
  Get the `Entity` that was killed.
  参数类型为Entity的org.bukkit.loot中的方法
  修饰符和类型
  方法
  说明
  `@NotNull LootContext.Builder`
  LootContext.Builder.`lootedEntity(@Nullable Entity lootedEntity)`
  The entity that was killed.

- ## org.bukkit.structure中Entity的使用

  返回变量类型为Entity的类型的org.bukkit.structure中的方法
  修饰符和类型
  方法
  说明
  `@NotNull List<Entity>`
  Structure.`getEntities()`
  Gets a list of entities that have been included in the Structure.

- ## org.bukkit.util中Entity的使用

  返回Entity的org.bukkit.util中的方法
  修饰符和类型
  方法
  说明
  `@Nullable Entity`
  RayTraceResult.`getHitEntity()`
  获取命中的实体.
  参数类型为Entity的org.bukkit.util中的方法
  修饰符和类型
  方法
  说明
  `boolean`
  EntityTransformer.`transform(@NotNull LimitedRegion region, int x, int y, int z, @NotNull Entity entity, boolean allowedToSpawn)`
  Transforms a entity in a structure.
  参数类型为Entity的org.bukkit.util中的构造器
  限定符
  构造器
  说明
  ``
  `RayTraceResult(@NotNull Vector hitPosition, @Nullable Entity hitEntity)`
  创建一个射线跟踪器结果.
  ``
  `RayTraceResult(@NotNull Vector hitPosition, @Nullable Entity hitEntity, @Nullable BlockFace hitBlockFace)`
  创建一个射线跟踪器结果.