Class DefaultBodyRotationController
java.lang.Object
com.ticxo.modelengine.api.nms.entity.impl.DefaultBodyRotationController
- All Implemented Interfaces:
BodyRotationController
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfloat
float
float
void
setYBodyRot
(float rot) void
setYHeadRot
(float rot) void
tick()
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, wait
Methods 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:BodyRotationController
Update method that is called every tick only if the entity does not have a body rotation controller by default.- Specified by:
tick
in interfaceBodyRotationController
-
setYHeadRot
public void setYHeadRot(float rot) - Specified by:
setYHeadRot
in interfaceBodyRotationController
-
getYHeadRot
public float getYHeadRot()- Specified by:
getYHeadRot
in interfaceBodyRotationController
-
getXHeadRot
public float getXHeadRot()- Specified by:
getXHeadRot
in interfaceBodyRotationController
-
setYBodyRot
public void setYBodyRot(float rot) - Specified by:
setYBodyRot
in interfaceBodyRotationController
-
getYBodyRot
public float getYBodyRot()- Specified by:
getYBodyRot
in interfaceBodyRotationController
-