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 Detail

      • entity

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

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

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