Package net.citizensnpcs.trait
Class RotationTrait.RotationSession
java.lang.Object
net.citizensnpcs.trait.RotationTrait.RotationSession
- Enclosing class:
RotationTrait
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfloat
float
boolean
isActive()
void
rotateToFace
(Entity target) Rotates to face target entityvoid
rotateToFace
(Location target) Rotates to face target locationvoid
rotateToHave
(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
-
-