Class BodyRotationControl
java.lang.Object
net.minecraft.world.entity.ai.control.BodyRotationControl
- All Implemented Interfaces:
Control
- Direct Known Subclasses:
Phantom.PhantomBodyRotationControl
,Shulker.ShulkerBodyRotationControl
-
Field Summary
Modifier and TypeFieldDescriptionprivate static int
private static int
private int
private static int
private float
private 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:
- Constant Field Values
-
DELAY_UNTIL_STARTING_TO_FACE_FORWARD
private static final int DELAY_UNTIL_STARTING_TO_FACE_FORWARD- See Also:
- Constant Field Values
-
HOW_LONG_IT_TAKES_TO_FACE_FORWARD
private static final int HOW_LONG_IT_TAKES_TO_FACE_FORWARD- See Also:
- Constant Field Values
-
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()
-