Interface MoveEntityEvent
-
- All Superinterfaces:
Cancellable
,Event
- All Known Subinterfaces:
ChangeEntityWorldEvent.Reposition
,RespawnPlayerEvent.Recreate
public interface MoveEntityEvent extends Event, Cancellable
Called when anEntity
performs movement.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Vector3d
destinationPosition()
Entity
entity()
Gets theEntity
.Vector3d
originalDestinationPosition()
Vector3d
originalPosition()
void
setDestinationPosition(Vector3d position)
-
Methods inherited from interface org.spongepowered.api.event.Cancellable
isCancelled, setCancelled
-
-
-
-
Method Detail
-
originalPosition
Vector3d originalPosition()
- Returns:
- The original position
-
originalDestinationPosition
Vector3d originalDestinationPosition()
- Returns:
- The original destination
-
destinationPosition
Vector3d destinationPosition()
- Returns:
- The new position
-
setDestinationPosition
void setDestinationPosition(Vector3d position)
- Parameters:
position
- The new position
-
-