Class RotationTrait.RotationSession

java.lang.Object
net.citizensnpcs.trait.RotationTrait.RotationSession
Enclosing class:
RotationTrait

public class RotationTrait.RotationSession extends Object
  • Constructor Details

  • Method Details

    • getTargetPitch

      public float getTargetPitch()
    • getTargetYaw

      public float getTargetYaw()
    • isActive

      public boolean isActive()
    • rotateToFace

      public void rotateToFace(Entity target)
      Rotates to face target entity
      Parameters:
      target - The target entity to face
    • rotateToFace

      public void rotateToFace(Location target)
      Rotates to face target location
      Parameters:
      target - The target location to face
    • rotateToHave

      public void rotateToHave(float yaw, float pitch)
      Rotate to have the given yaw and pitch
      Parameters:
      yaw -
      pitch -