Package org.bukkit.event.entity
Class EntityUnleashEvent
- java.lang.Object
-
- org.bukkit.event.Event
-
- org.bukkit.event.entity.EntityEvent
-
- 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
Nested Classes Modifier and Type Class Description static classEntityUnleashEvent.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
Constructors Constructor Description EntityUnleashEvent(Entity entity, EntityUnleashEvent.UnleashReason reason)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HandlerListgetHandlerList()HandlerListgetHandlers()EntityUnleashEvent.UnleashReasongetReason()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
-
-
-
-
Constructor Detail
-
EntityUnleashEvent
public EntityUnleashEvent(@NotNull Entity entity, @NotNull EntityUnleashEvent.UnleashReason reason)
-
-
Method Detail
-
getReason
@NotNull public EntityUnleashEvent.UnleashReason getReason()
Returns the reason for the unleashing.- Returns:
- The reason
-
getHandlers
@NotNull public HandlerList getHandlers()
- Specified by:
getHandlersin classEvent
-
getHandlerList
@NotNull public static HandlerList getHandlerList()
-
-