org.bukkit.event.entity
Class EntityEvent
java.lang.Object
org.bukkit.event.Event
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
entity
protected Entity entity
EntityEvent
public EntityEvent(Entity what)
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.