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.Vector3dGetting the position for teleporting the player.org.spongepowered.math.vector.Vector3dGetting the original position for teleporting the player.Getting the original destination region.org.spongepowered.math.vector.Vector3dGetting the player's original position.voidsetDestination(org.spongepowered.math.vector.Vector3d location) Assigning a position for player teleportation.Methods inherited from interface org.spongepowered.api.event.Cancellable
isCancelled, setCancelledMethods inherited from interface org.spongepowered.api.event.Event
context, sourceMethods inherited from interface sawfowl.regionguard.api.events.RegionManagementEvent
cause, getPlayer, getRegionMethods 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.
-