Class DefaultBodyRotationController
java.lang.Object
com.ticxo.modelengine.api.nms.entity.impl.DefaultBodyRotationController
- All Implemented Interfaces:
BodyRotationController
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloatfloatfloatvoidsetYBodyRot(float rot) voidsetYHeadRot(float rot) voidtick()Update method that is called every tick only if the entity does not have a body rotation controller by default.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.ticxo.modelengine.api.nms.entity.wrapper.BodyRotationController
getMaxBodyAngle, getMaxHeadAngle, getMinBodyAngle, getMinHeadAngle, getRotationDelay, getRotationDuration, getStableAngle, isBodyClampUneven, isHeadClampUneven, isPlayerMode, setBodyClampUneven, setHeadClampUneven, setMaxBodyAngle, setMaxHeadAngle, setMinBodyAngle, setMinHeadAngle, setPlayerMode, setRotationDelay, setRotationDuration, setStableAngle
-
Constructor Details
-
DefaultBodyRotationController
-
-
Method Details
-
tick
public void tick()Description copied from interface:BodyRotationControllerUpdate method that is called every tick only if the entity does not have a body rotation controller by default.- Specified by:
tickin interfaceBodyRotationController
-
setYHeadRot
public void setYHeadRot(float rot) - Specified by:
setYHeadRotin interfaceBodyRotationController
-
getYHeadRot
public float getYHeadRot()- Specified by:
getYHeadRotin interfaceBodyRotationController
-
getXHeadRot
public float getXHeadRot()- Specified by:
getXHeadRotin interfaceBodyRotationController
-
setYBodyRot
public void setYBodyRot(float rot) - Specified by:
setYBodyRotin interfaceBodyRotationController
-
getYBodyRot
public float getYBodyRot()- Specified by:
getYBodyRotin interfaceBodyRotationController
-