EntityEvent(超類)
已知的實體事件子類是:
子類 | 子類 | 子類 |
---|---|---|
CreatureSpawnEvent |
CreeperPowerEvent | EntityChangeBlockEvent |
EntityCombustEvent |
EntityCreatePortalEvent | EntityDamageEvent |
EntityDeathEvent |
EntityExplodeEvent | EntityInteractEvent |
EntityPortalEnterEvent |
EntityRegainHealthEvent | EntityShootBowEvent |
EntityTameEvent |
EntityTargetEvent | EntityTeleportEvent |
EntityUnleashEvent |
ExplosionPrimeEvent | FoodLevelChangeEvent |
HorseJumpEvent |
ItemDespawnEvent | ItemSpawnEvent |
PigZapEvent |
ProjectileHitEvent | ProjectileLaunchEvent |
SheepDyeWoolEvent |
SheepRegrowWoolEvent | SlimeSplitEvent |
除此之外,所有子類都繼承以下方法:
Entity getEntity(); //Entity who is involved in this event
EntityType getEntityType(); //EntityType of the Entity involved in this event