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
FieldsModifier and TypeFieldDescriptionprivate static final intprivate static final intprivate intprivate static final intprivate floatprivate final Mob - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidprivate booleanisMoving()private booleanprivate voidprivate voidprivate 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() 
 -