Interface MoveEntityEvent

All Superinterfaces:
Cancellable, Event
All Known Subinterfaces:
ChangeEntityWorldEvent.Reposition, InvokePortalEvent.Execute, RespawnPlayerEvent.Recreate

public interface MoveEntityEvent extends Event, Cancellable
Called when an Entity performs movement.
  • Method Details Link icon

    • entity Link icon

      Entity entity()
      Gets the Entity.
      Returns:
      The entity
    • originalPosition Link icon

      Vector3d originalPosition()
      Gets the position the Entity came from.
      Returns:
      The original position
    • originalDestinationPosition Link icon

      Vector3d originalDestinationPosition()
      Gets the position the Entity would have been going to.
      Returns:
      The original destination
    • destinationPosition Link icon

      Vector3d destinationPosition()
      Gets the position the Entity will go to.
      Returns:
      The new position
    • setDestinationPosition Link icon

      void setDestinationPosition(Vector3d position)
      Sets the new position the Entity will go to.
      Parameters:
      position - The new position