Interface InvokePortalEvent.Execute
- All Superinterfaces:
Cancellable
,ChangeEntityWorldEvent
,ChangeEntityWorldEvent.Reposition
,Event
,InvokePortalEvent
,MoveEntityEvent
,RotateEntityEvent
- Enclosing interface:
InvokePortalEvent
public static interface InvokePortalEvent.Execute
extends InvokePortalEvent, ChangeEntityWorldEvent.Reposition, RotateEntityEvent
Called after a
PortalLogic
calculated and found or generated the portal exit.
Note that ChangeEntityWorldEvent
still fire after this.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.spongepowered.api.event.entity.ChangeEntityWorldEvent
ChangeEntityWorldEvent.Post, ChangeEntityWorldEvent.Pre, ChangeEntityWorldEvent.Reposition
Nested classes/interfaces inherited from interface org.spongepowered.api.event.entity.InvokePortalEvent
InvokePortalEvent.Enter, InvokePortalEvent.Execute, InvokePortalEvent.Prepare
-
Method Summary
Modifier and TypeMethodDescriptionGets the exit speed.void
setExitSpeed
(Vector3d speed) Sets the exit speed.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.InvokePortalEvent
entity, portalLogic
Methods inherited from interface org.spongepowered.api.event.entity.MoveEntityEvent
destinationPosition, entity, originalDestinationPosition, originalPosition, setDestinationPosition
Methods inherited from interface org.spongepowered.api.event.entity.RotateEntityEvent
entity, fromRotation, setToRotation, toRotation
-
Method Details
-
exitSpeed
Vector3d exitSpeed()Gets the exit speed.- Returns:
- The exit speed
-
setExitSpeed
Sets the exit speed.- Parameters:
speed
- The exit speed
-