Interface RotateEntityEvent

All Superinterfaces:
Cancellable, Event

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

    • entity

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

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

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

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