Class EntityEvent

java.lang.Object
org.bukkit.event.Event
org.bukkit.event.entity.EntityEvent
Direct Known Subclasses:
CreeperPowerEvent, EntityChangeBlockEvent, EntityCombustEvent, EntityCreatePortalEvent, EntityDamageEvent, EntityDeathEvent, EntityDismountEvent, EntityExplodeEvent, EntityInteractEvent, EntityMountEvent, EntityPortalEnterEvent, EntityRegainHealthEvent, EntityShootBowEvent, EntitySpawnEvent, EntityTameEvent, EntityTargetEvent, EntityTeleportEvent, EntityUnleashEvent, ExplosionPrimeEvent, FireworkExplodeEvent, FoodLevelChangeEvent, HorseJumpEvent, ItemDespawnEvent, ItemMergeEvent, 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

    Fields 
    Modifier and Type Field Description
    protected Entity entity  
  • Constructor Summary

    Constructors 
    Constructor Description
    EntityEvent​(Entity what)  
  • Method Summary

    Modifier and Type Method Description
    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 Details

  • Constructor Details

  • Method Details

    • 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