public static interface NucleusTeleportEvent.AboutToTeleport extends NucleusTeleportEvent
NucleusTeleportEvent.AboutToTeleport, NucleusTeleportEvent.Request
Modifier and Type | Method and Description |
---|---|
org.spongepowered.api.entity.living.player.Player |
getTargetEntity()
The
Player to be teleported. |
org.spongepowered.api.entity.Transform<org.spongepowered.api.world.World> |
getToTransform()
Gets the proposed location of the entity that will be teleported.
|
getCancelMessage, setCancelMessage
org.spongepowered.api.entity.Transform<org.spongepowered.api.world.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.org.spongepowered.api.entity.living.player.Player getTargetEntity()
Player
to be teleported.getTargetEntity
in interface org.spongepowered.api.event.entity.TargetEntityEvent
getTargetEntity
in interface org.spongepowered.api.event.entity.living.humanoid.TargetHumanoidEvent
getTargetEntity
in interface org.spongepowered.api.event.entity.living.TargetLivingEvent
getTargetEntity
in interface org.spongepowered.api.event.entity.living.humanoid.player.TargetPlayerEvent
Player
in question.