org.bukkit.event.entity
Class EntityUnleashEvent

java.lang.Object
  extended by org.bukkit.event.Event
      extended by org.bukkit.event.entity.EntityEvent
          extended by org.bukkit.event.entity.EntityUnleashEvent
Direct Known Subclasses:
PlayerUnleashEntityEvent

public class EntityUnleashEvent
extends EntityEvent

Called immediately prior to an entity being unleashed.


Nested Class Summary
static class EntityUnleashEvent.UnleashReason
           
 
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result
 
Field Summary
 
Fields inherited from class org.bukkit.event.entity.EntityEvent
entity
 
Constructor Summary
EntityUnleashEvent(Entity entity, EntityUnleashEvent.UnleashReason reason)
           
 
Method Summary
static HandlerList getHandlerList()
           
 HandlerList getHandlers()
           
 EntityUnleashEvent.UnleashReason getReason()
          Returns the reason for the unleashing.
 
Methods inherited from class org.bukkit.event.entity.EntityEvent
getEntity, getEntityType
 
Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EntityUnleashEvent

public EntityUnleashEvent(Entity entity,
                          EntityUnleashEvent.UnleashReason reason)
Method Detail

getReason

public EntityUnleashEvent.UnleashReason getReason()
Returns the reason for the unleashing.

Returns:
The reason

getHandlers

public HandlerList getHandlers()
Specified by:
getHandlers in class Event

getHandlerList

public static HandlerList getHandlerList()


Copyright © 2013. All Rights Reserved.