public static interface NucleusTeleportEvent.AboutToTeleport extends NucleusTeleportEvent
NucleusTeleportEvent.AboutToTeleport, NucleusTeleportEvent.Request
Modifier and Type | Method and Description |
---|---|
Player |
getTargetEntity()
The
Player to be teleported. |
Transform<World> |
getToTransform()
Gets the proposed location of the entity that will be teleported.
|
getCause, getContext, getSource
getCancelMessage, setCancelMessage
isCancelled, setCancelled
Transform<World> getToTransform()
Transform
that the player would teleport to. Note that for NucleusTeleportEvent.Request
, this might change when the
teleportation gets underway - any changes should be made during the MoveEntityEvent.Teleport
event.Player getTargetEntity()
Player
to be teleported.getTargetEntity
in interface TargetEntityEvent
getTargetEntity
in interface TargetHumanoidEvent
getTargetEntity
in interface TargetLivingEvent
getTargetEntity
in interface TargetPlayerEvent
Player
in question.