| Package | Description | 
|---|---|
| org.bukkit.entity | 
 Interfaces for non-voxel objects that can exist in a  
world, including all players, monsters, projectiles, etc. | 
| org.bukkit.event.player | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
Entity.teleport(Entity destination,
        PlayerTeleportEvent.TeleportCause cause)
Teleports this entity to the target Entity. 
 | 
boolean | 
Entity.teleport(Location location,
        PlayerTeleportEvent.TeleportCause cause)
Teleports this entity to the given location. 
 | 
default CompletableFuture<Boolean> | 
Entity.teleportAsync(Location loc,
             PlayerTeleportEvent.TeleportCause cause)
Loads/Generates(in 1.13+) the Chunk asynchronously, and then teleports the entity when the chunk is ready. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
PlayerTeleportEvent.TeleportCause | 
PlayerTeleportEvent.getCause()
Gets the cause of this teleportation event 
 | 
static PlayerTeleportEvent.TeleportCause | 
PlayerTeleportEvent.TeleportCause.valueOf(String name)
Returns the enum constant of this type with the specified name. 
 | 
static PlayerTeleportEvent.TeleportCause[] | 
PlayerTeleportEvent.TeleportCause.values()
Returns an array containing the constants of this enum type, in
the order they are declared. 
 | 
| Constructor and Description | 
|---|
PlayerPortalEvent(Player player,
                 Location from,
                 Location to,
                 PlayerTeleportEvent.TeleportCause cause)  | 
PlayerTeleportEvent(Player player,
                   Location from,
                   Location to,
                   PlayerTeleportEvent.TeleportCause cause)  | 
Copyright © 2022. All rights reserved.