Class EntityTeleportEvent

All Implemented Interfaces:
Cancellable
Direct Known Subclasses:
EntityPortalEvent, EntityPortalExitEvent

public class EntityTeleportEvent
extends EntityEvent
implements Cancellable
Thrown when a non-player entity is teleported from one location to another.
This may be as a result of natural causes (Enderman, Shulker), pathfinding (Wolf), or commands (/teleport).