@MightOccurAsync public static interface NucleusTeleportEvent.Request extends NucleusTeleportEvent
/tpa
) is being sent.Modifier and Type | Interface and Description |
---|---|
static interface |
NucleusTeleportEvent.Request.CauseToPlayer
Called when the root cause wants to teleport to the target player (like /tpa).
|
static interface |
NucleusTeleportEvent.Request.PlayerToCause
Called when the root cause wants the target player to teleport to them (like /tpahere).
|
NucleusTeleportEvent.AboutToTeleport, NucleusTeleportEvent.Request
Modifier and Type | Method and Description |
---|---|
org.spongepowered.api.entity.living.player.Player |
getTargetEntity()
The recipient of the request.
|
getCancelMessage, setCancelMessage
org.spongepowered.api.entity.living.player.Player getTargetEntity()
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.