Class EntityUnleashEvent

All Implemented Interfaces:
Cancellable
Direct Known Subclasses:
PlayerUnleashEntityEvent

public class EntityUnleashEvent extends EntityEvent implements Cancellable
Called immediately prior to an entity being unleashed.

Cancelling this event when either:

  • the leashed entity dies,
  • the entity changes dimension, or
  • the client has disconnected the leash
will have no effect.