public interface NucleusSendToSpawnEvent
extends org.spongepowered.api.event.user.TargetUserEvent, org.spongepowered.api.event.Cancellable
User
to spawn, either now, or on their next login.Modifier and Type | Interface and Description |
---|---|
static class |
NucleusSendToSpawnEvent.Type
The type of the spawn event.
|
Modifier and Type | Method and Description |
---|---|
org.spongepowered.api.entity.Transform<org.spongepowered.api.world.World> |
getOriginalTransformTo()
The original
Transform Nucleus was going to send the User to, in the event it's changed. |
org.spongepowered.api.entity.living.player.User |
getTargetUser()
The
User being spawned. |
org.spongepowered.api.entity.Transform<org.spongepowered.api.world.World> |
getTransformTo()
The
Transform to send the User to. |
void |
setCancelReason(java.lang.String reason)
If cancelled, the reason to return to the requestee.
|
void |
setTransformTo(org.spongepowered.api.entity.Transform<org.spongepowered.api.world.World> transform)
The
Transform to redirect the User to. |
org.spongepowered.api.entity.Transform<org.spongepowered.api.world.World> getTransformTo()
Transform
to send the User
to.Transform
org.spongepowered.api.entity.Transform<org.spongepowered.api.world.World> getOriginalTransformTo()
Transform
Nucleus was going to send the User
to, in the event it's changed.Transform
void setTransformTo(org.spongepowered.api.entity.Transform<org.spongepowered.api.world.World> transform)
Transform
to redirect the User
to.transform
- The Transform
void setCancelReason(java.lang.String reason)
reason
- The reason for cancelling.org.spongepowered.api.entity.living.player.User getTargetUser()
User
being spawned.getTargetUser
in interface org.spongepowered.api.event.user.TargetUserEvent
User