类 EntityEvent

java.lang.Object
org.bukkit.event.Event
org.bukkit.event.entity.EntityEvent
直接已知子类:
AreaEffectCloudApplyEvent, CreatureSpawnEvent, CreeperPowerEvent, EnderDragonChangePhaseEvent, EntityAirChangeEvent, EntityBreedEvent, EntityChangeBlockEvent, EntityCombustEvent, EntityCreatePortalEvent, EntityDamageEvent, EntityDeathEvent, EntityExplodeEvent, EntityInteractEvent, EntityPickupItemEvent, EntityPortalEnterEvent, EntityRegainHealthEvent, EntityResurrectEvent, EntityShootBowEvent, EntityTameEvent, EntityTargetEvent, EntityTeleportEvent, EntityToggleGlideEvent, EntityUnleashEvent, ExplosionPrimeEvent, FireworkExplodeEvent, FoodLevelChangeEvent, HorseJumpEvent, ItemDespawnEvent, ItemMergeEvent, ItemSpawnEvent, PigZapEvent, ProjectileHitEvent, ProjectileLaunchEvent, SheepDyeWoolEvent, SheepRegrowWoolEvent, SlimeSplitEvent, VillagerAcquireTradeEvent, VillagerReplenishTradeEvent

public abstract class EntityEvent extends Event
代表实体相关事件.
  • 字段详细资料

    • entity

      protected Entity entity
  • 构造器详细资料

    • EntityEvent

      public EntityEvent(Entity what)
  • 方法详细资料

    • getEntity

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

      原文: Returns the Entity involved in this event

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

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

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

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