Class BodyRotationControl
java.lang.Object
net.minecraft.world.entity.ai.control.BodyRotationControl
- All Implemented Interfaces:
Control
- Direct Known Subclasses:
Camel.CamelBodyRotationControl
,Phantom.PhantomBodyRotationControl
,Shulker.ShulkerBodyRotationControl
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final int
private static final int
private int
private static final int
private float
private final Mob
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
private boolean
isMoving()
private boolean
private void
private void
private void
-
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()
-