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 class
EntityUnleashEvent.UnleashReason
-
Field Summary
-
Constructor Summary
Constructors Constructor Description EntityUnleashEvent(Entity entity, EntityUnleashEvent.UnleashReason reason)
-
Method Summary
Modifier and Type Method Description static HandlerList
getHandlerList()
HandlerList
getHandlers()
EntityUnleashEvent.UnleashReason
getReason()
Returns the reason for the unleashing.
-
Constructor Details
-
EntityUnleashEvent
public EntityUnleashEvent(@NotNull Entity entity, @NotNull EntityUnleashEvent.UnleashReason reason)
-
-
Method Details
-
getReason
Returns the reason for the unleashing.- Returns:
- The reason
-
getHandlers
- Specified by:
getHandlers
in classEvent
-
getHandlerList
-