Class AsyncPlayerWorldChangeEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.player.PlayerEvent
io.prismmc.prism.event.player.AsyncPlayerWorldChangeEvent
Called once a player is in another world after a teleport through
Entity.teleportAsync(Location). Folia never calls
PlayerChangedWorldEvent for these teleports; this event stands for it.
It is called on the thread that owns the player in its new world, where the player may be read and changed.
-
Nested Class Summary
Nested classes/interfaces inherited from class Event
Event.Result -
Field Summary
Fields inherited from class PlayerEvent
player -
Constructor Summary
ConstructorsConstructorDescriptionAsyncPlayerWorldChangeEvent(Player player, Location fromLocation, PlayerTeleportEvent.TeleportCause cause) -
Method Summary
Modifier and TypeMethodDescriptiongetCause()Why the player was teleported.getFrom()The world the player left; the new one is the player's world.Where in that world the player was.static HandlerListMethods inherited from class PlayerEvent
getPlayerMethods inherited from class Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
AsyncPlayerWorldChangeEvent
@Internal public AsyncPlayerWorldChangeEvent(Player player, Location fromLocation, PlayerTeleportEvent.TeleportCause cause)
-
-
Method Details
-
getFrom
The world the player left; the new one is the player's world. -
getFromLocation
Where in that world the player was. -
getCause
Why the player was teleported. -
getHandlers
- Specified by:
getHandlersin classEvent
-
getHandlerList
-