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
,EntityDismountEvent
,EntityDropItemEvent
,EntityEnterBlockEvent
,EntityEnterLoveModeEvent
,EntityExhaustionEvent
,EntityExplodeEvent
,EntityInteractEvent
,EntityKnockbackEvent
,EntityMountEvent
,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
Represents an Entity-related event
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the Entity involved in this eventGets the EntityType of the Entity involved in this event.Methods inherited from class org.bukkit.event.Event
getEventName, getHandlers, isAsynchronous
-
Field Details
-
entity
-
-
Constructor Details
-
EntityEvent
-
-
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
-