Package sawfowl.commandpack.api.events
Interface RandomTeleportEvent
- All Superinterfaces:
Cancellable
,ChangeEntityWorldEvent
,ChangeEntityWorldEvent.Reposition
,Event
,MoveEntityEvent
The event is triggered when using the command /randomteleport, if the position was found.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.spongepowered.api.event.entity.ChangeEntityWorldEvent
ChangeEntityWorldEvent.Post, ChangeEntityWorldEvent.Pre, ChangeEntityWorldEvent.Reposition
-
Method Summary
Methods inherited from interface org.spongepowered.api.event.Cancellable
isCancelled, setCancelled
Methods inherited from interface org.spongepowered.api.event.entity.ChangeEntityWorldEvent
destinationWorld, entity, originalDestinationWorld, originalWorld
Methods inherited from interface org.spongepowered.api.event.entity.MoveEntityEvent
destinationPosition, entity, originalDestinationPosition, originalPosition, setDestinationPosition
-
Method Details
-
player
ServerPlayer player()Gets theServerPlayer
- Returns:
- The player
-
getOptions
RandomTeleportService.RandomTeleportOptions getOptions()
-