Interface RotateEntityEvent

All Superinterfaces:
Cancellable, Event
All Known Subinterfaces:
InvokePortalEvent.Execute

public interface RotateEntityEvent extends Event, Cancellable
Called when an Entity performs rotation of their body or, if applicable, head without moving their position.
  • Method Details Link icon

    • entity Link icon

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

      Vector3d fromRotation()
      Gets the rotation the Entity was performing.
      Returns:
      The rotation
    • toRotation Link icon

      Vector3d toRotation()
      Gets the rotation the Entity will perform.
      Returns:
      The new rotation
    • setToRotation Link icon

      void setToRotation(Vector3d rotation)
      Sets the new rotation that the Entity will perform.
      Parameters:
      rotation - The new rotation