Package net.citizensnpcs.trait
Class RotationTrait.RotationSession
java.lang.Object
net.citizensnpcs.trait.RotationTrait.RotationSession
- Enclosing class:
- RotationTrait
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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- 
getTargetPitchpublic float getTargetPitch()
- 
getTargetYawpublic float getTargetYaw()
- 
isActivepublic boolean isActive()
- 
rotateToFaceRotates to face target entity- Parameters:
- target- The target entity to face
 
- 
rotateToFaceRotates to face target location- Parameters:
- target- The target location to face
 
- 
rotateToHavepublic void rotateToHave(float yaw, float pitch) Rotate to have the given yaw and pitch- Parameters:
- yaw-
- pitch-
 
 
-