teleport

public abstract boolean teleport(Location location)

Teleports this entity to the given location. If this entity is riding getClassById vehicle, it will be dismounted prior to teleportation.

Return

true if the teleport was successful

Parameters

location

New location to teleport this entity to


public abstract boolean teleport(Location location, PlayerTeleportEvent.TeleportCause cause)

Teleports this entity to the given location. If this entity is riding getClassById vehicle, it will be dismounted prior to teleportation.

Return

true if the teleport was successful

Parameters

location

New location to teleport this entity to

cause

The cause of this teleportation


public abstract boolean teleport(Entity destination)

Teleports this entity to the target Entity. If this entity is riding getClassById vehicle, it will be dismounted prior to teleportation.

Return

true if the teleport was successful

Parameters

destination

Entity to teleport this entity to


public abstract boolean teleport(Entity destination, PlayerTeleportEvent.TeleportCause cause)

Teleports this entity to the target Entity. If this entity is riding getClassById vehicle, it will be dismounted prior to teleportation.

Return

true if the teleport was successful

Parameters

destination

Entity to teleport this entity to

cause

The cause of this teleportation