Package sawfowl.regionguard.api.events
Interface RegionCommandTeleportEvent
- All Superinterfaces:
org.spongepowered.api.event.Cancellable
,org.spongepowered.api.event.Event
,RegionManagementEvent
,RegionMessageEvent
-
Method Summary
Modifier and TypeMethodDescriptionfrom()
Getting the region in which the command is executed.org.spongepowered.math.vector.Vector3d
Getting the position for teleporting the player.org.spongepowered.math.vector.Vector3d
Getting the original position for teleporting the player.Getting the original destination region.org.spongepowered.math.vector.Vector3d
Getting the player's original position.void
setDestination
(org.spongepowered.math.vector.Vector3d location) Assigning a position for player teleportation.Methods inherited from interface org.spongepowered.api.event.Cancellable
isCancelled, setCancelled
Methods inherited from interface org.spongepowered.api.event.Event
context, source
Methods inherited from interface sawfowl.regionguard.api.events.RegionManagementEvent
cause, getPlayer, getRegion
Methods inherited from interface sawfowl.regionguard.api.events.world.RegionMessageEvent
getMessage, setMessage
-
Method Details
-
from
Region from()Getting the region in which the command is executed. -
getOriginalDestinationRegion
Region getOriginalDestinationRegion()Getting the original destination region. -
getOriginalLocation
org.spongepowered.math.vector.Vector3d getOriginalLocation()Getting the player's original position. -
getOriginalDestinationLocation
org.spongepowered.math.vector.Vector3d getOriginalDestinationLocation()Getting the original position for teleporting the player. -
getDestinationLocation
org.spongepowered.math.vector.Vector3d getDestinationLocation()Getting the position for teleporting the player. -
setDestination
void setDestination(org.spongepowered.math.vector.Vector3d location) Assigning a position for player teleportation.
-