org.bukkit.event.entity
Class EntityEvent

java.lang.Object
  extended by org.bukkit.event.Event
      extended by org.bukkit.event.entity.EntityEvent
Direct Known Subclasses:
CreatureSpawnEvent, CreeperPowerEvent, EntityChangeBlockEvent, EntityCombustEvent, EntityCreatePortalEvent, EntityDamageEvent, EntityDeathEvent, EntityExplodeEvent, EntityInteractEvent, EntityPortalEnterEvent, EntityRegainHealthEvent, EntityShootBowEvent, EntityTameEvent, EntityTargetEvent, EntityTeleportEvent, ExplosionPrimeEvent, FoodLevelChangeEvent, ItemDespawnEvent, ItemSpawnEvent, PigZapEvent, ProjectileHitEvent, ProjectileLaunchEvent, SheepDyeWoolEvent, SheepRegrowWoolEvent, SlimeSplitEvent

public abstract class EntityEvent
extends Event

Represents an Entity-related event


Nested Class Summary
 
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result
 
Field Summary
protected  Entity entity
           
 
Constructor Summary
EntityEvent(Entity what)
           
 
Method Summary
 Entity getEntity()
          Returns the Entity involved in this event
 EntityType getEntityType()
          Gets the EntityType of the Entity involved in this event.
 
Methods inherited from class org.bukkit.event.Event
getEventName, getHandlers, isAsynchronous
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

entity

protected Entity entity
Constructor Detail

EntityEvent

public EntityEvent(Entity what)
Method Detail

getEntity

public Entity getEntity()
Returns the Entity involved in this event

Returns:
Entity who is involved in this event

getEntityType

public EntityType getEntityType()
Gets the EntityType of the Entity involved in this event.

Returns:
EntityType of the Entity involved in this event


Copyright © 2013. All Rights Reserved.