Package org.bukkit.event.entity
Class EntityEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.entity.EntityEvent
- Direct Known Subclasses:
AreaEffectCloudApplyEvent
,ArrowBodyCountChangeEvent
,BatToggleSleepEvent
,CreeperPowerEvent
,EnderDragonChangePhaseEvent
,EntityAirChangeEvent
,EntityBreedEvent
,EntityChangeBlockEvent
,EntityCombustEvent
,EntityCreatePortalEvent
,EntityDamageEvent
,EntityDeathEvent
,EntityDismountEvent
,EntityDropItemEvent
,EntityEnterBlockEvent
,EntityEnterLoveModeEvent
,EntityExplodeEvent
,EntityInteractEvent
,EntityMountEvent
,EntityPickupItemEvent
,EntityPlaceEvent
,EntityPortalEnterEvent
,EntityPoseChangeEvent
,EntityPotionEffectEvent
,EntityRegainHealthEvent
,EntityResurrectEvent
,EntityShootBowEvent
,EntitySpawnEvent
,EntitySpellCastEvent
,EntityTameEvent
,EntityTargetEvent
,EntityTeleportEvent
,EntityToggleGlideEvent
,EntityToggleSwimEvent
,EntityTransformEvent
,EntityUnleashEvent
,ExplosionPrimeEvent
,FireworkExplodeEvent
,FoodLevelChangeEvent
,HorseJumpEvent
,ItemDespawnEvent
,ItemMergeEvent
,PigZombieAngerEvent
,ProjectileHitEvent
,SheepDyeWoolEvent
,SheepRegrowWoolEvent
,SlimeSplitEvent
,StriderTemperatureChangeEvent
,VillagerAcquireTradeEvent
,VillagerCareerChangeEvent
,VillagerReplenishTradeEvent
public abstract class EntityEvent extends Event
Represents an Entity-related event
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
Constructors Constructor Description EntityEvent(Entity what)
-
Method Summary
Modifier and Type Method Description Entity
getEntity()
Returns the Entity involved in this eventEntityType
getEntityType()
Gets the EntityType of the Entity involved in this event.
-
Field Details
-
Constructor Details
-
Method Details
-
getEntity
Returns the Entity involved in this event- Returns:
- Entity who is involved in this event
-
getEntityType
Gets the EntityType of the Entity involved in this event.- Returns:
- EntityType of the Entity involved in this event
-