类 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
代表实体相关事件.
  • 字段详细资料

    • entity

      protected Entity entity
  • 构造器详细资料

  • 方法详细资料

    • 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