Package net.citizensnpcs.trait
Class RotationTrait.RotationSession
java.lang.Object
net.citizensnpcs.trait.RotationTrait.RotationSession
- Enclosing class:
RotationTrait
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloatfloatbooleanisActive()voidrotateToFace(Entity target) Rotates to face target entityvoidrotateToFace(Location target) Rotates to face target locationvoidrotateToHave(float yaw, float pitch) Rotate to have the given yaw and pitch
-
Constructor Details
-
RotationSession
-
-
Method Details
-
getTargetPitch
public float getTargetPitch() -
getTargetYaw
public float getTargetYaw() -
isActive
public boolean isActive() -
rotateToFace
Rotates to face target entity- Parameters:
target- The target entity to face
-
rotateToFace
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-
-