程序包 org.bukkit.event.entity

# 类 EntityEvent

java.lang.Object
org.bukkit.event.Event
org.bukkit.event.entity.EntityEvent

直接已知子类:
  `AreaEffectCloudApplyEvent`, `ArrowBodyCountChangeEvent`, `BatToggleSleepEvent`, `CreeperPowerEvent`, `EnderDragonChangePhaseEvent`, `EntityAirChangeEvent`, `EntityBreedEvent`, `EntityChangeBlockEvent`, `EntityCombustEvent`, `EntityCreatePortalEvent`, `EntityDamageEvent`, `EntityDeathEvent`, `EntityDismountEvent`, `EntityDropItemEvent`, `EntityEnterBlockEvent`, `EntityEnterLoveModeEvent`, `EntityExhaustionEvent`, `EntityExplodeEvent`, `EntityInteractEvent`, `EntityKnockbackEvent`, `EntityMountEvent`, `EntityPickupItemEvent`, `EntityPlaceEvent`, `EntityPortalEnterEvent`, `EntityPoseChangeEvent`, `EntityPotionEffectEvent`, `EntityRegainHealthEvent`, `EntityRemoveEvent`, `EntityResurrectEvent`, `EntityShootBowEvent`, `EntitySpawnEvent`, `EntitySpellCastEvent`, `EntityTameEvent`, `EntityTargetEvent`, `EntityTeleportEvent`, `EntityToggleGlideEvent`, `EntityToggleSwimEvent`, `EntityTransformEvent`, `EntityUnleashEvent`, `ExplosionPrimeEvent`, `FireworkExplodeEvent`, `FoodLevelChangeEvent`, `HorseJumpEvent`, `ItemDespawnEvent`, `ItemMergeEvent`, `PiglinBarterEvent`, `PigZombieAngerEvent`, `ProjectileHitEvent`, `SheepDyeWoolEvent`, `SheepRegrowWoolEvent`, `SlimeSplitEvent`, `StriderTemperatureChangeEvent`, `VillagerAcquireTradeEvent`, `VillagerCareerChangeEvent`, `VillagerReplenishTradeEvent`

public abstract class EntityEvent extends Event
代表实体相关事件.

- ## 嵌套类概要

  ## 从类继承的嵌套类/接口 org.bukkit.event.Event

  `Event.Result`

- ## 字段概要

  字段
  修饰符和类型
  字段
  说明
  `protected Entity`
  `entity`

- ## 构造器概要

  构造器
  构造器
  说明
  `EntityEvent(@NotNull Entity what)`

- ## 方法概要

  修饰符和类型
  方法
  说明
  `@NotNull Entity`
  `getEntity()`
  返回这个事件所涉及的实体.
  `@NotNull EntityType`
  `getEntityType()`
  获取涉及这个事件的实体的EntityType.

  ### 从类继承的方法 org.bukkit.event.Event

  `getEventName, getHandlers, isAsynchronous`

  ### 从类继承的方法 java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## 字段详细资料

  - ### entity

    protected Entity entity

- ## 构造器详细资料

  - ### EntityEvent

    public EntityEvent(@NotNull @NotNull Entity what)

- ## 方法详细资料

  - ### getEntity

    @NotNull public @NotNull Entity getEntity()
    返回这个事件所涉及的实体.

    原文: Returns the Entity involved in this event

    返回:
      涉及这个事件的实体

  - ### getEntityType

    @NotNull public @NotNull EntityType getEntityType()
    获取涉及这个事件的实体的EntityType.

    原文：Gets the EntityType of the Entity involved in this event.

    返回:
      涉及这个事件的实体的EntityType