Class BodyRotationControl
java.lang.Object
net.minecraft.world.entity.ai.control.BodyRotationControl
- All Implemented Interfaces:
Control
- Direct Known Subclasses:
Camel.CamelBodyRotationControl
,Creaking.CreakingBodyRotationControl
,Phantom.PhantomBodyRotationControl
,Shulker.ShulkerBodyRotationControl
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final int
private static final int
private int
private static final int
private float
private final Mob
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
private boolean
isMoving()
private boolean
private void
private void
private void
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.world.entity.ai.control.Control
rotateTowards
-
Field Details
-
mob
-
HEAD_STABLE_ANGLE
private static final int HEAD_STABLE_ANGLE- See Also:
-
DELAY_UNTIL_STARTING_TO_FACE_FORWARD
private static final int DELAY_UNTIL_STARTING_TO_FACE_FORWARD- See Also:
-
HOW_LONG_IT_TAKES_TO_FACE_FORWARD
private static final int HOW_LONG_IT_TAKES_TO_FACE_FORWARD- See Also:
-
headStableTime
private int headStableTime -
lastStableYHeadRot
private float lastStableYHeadRot
-
-
Constructor Details
-
BodyRotationControl
-
-
Method Details
-
clientTick
public void clientTick() -
rotateBodyIfNecessary
private void rotateBodyIfNecessary() -
rotateHeadIfNecessary
private void rotateHeadIfNecessary() -
rotateHeadTowardsFront
private void rotateHeadTowardsFront() -
notCarryingMobPassengers
private boolean notCarryingMobPassengers() -
isMoving
private boolean isMoving()
-