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 SummaryFieldsModifier and TypeFieldDescriptionprivate static final intprivate static final intprivate intprivate static final intprivate floatprivate final Mob
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidprivate booleanisMoving()private booleanprivate voidprivate voidprivate void
- 
Field Details- 
mob
- 
HEAD_STABLE_ANGLEprivate static final int HEAD_STABLE_ANGLE- See Also:
 
- 
DELAY_UNTIL_STARTING_TO_FACE_FORWARDprivate static final int DELAY_UNTIL_STARTING_TO_FACE_FORWARD- See Also:
 
- 
HOW_LONG_IT_TAKES_TO_FACE_FORWARDprivate static final int HOW_LONG_IT_TAKES_TO_FACE_FORWARD- See Also:
 
- 
headStableTimeprivate int headStableTime
- 
lastStableYHeadRotprivate float lastStableYHeadRot
 
- 
- 
Constructor Details- 
BodyRotationControl
 
- 
- 
Method Details- 
clientTickpublic void clientTick()
- 
rotateBodyIfNecessaryprivate void rotateBodyIfNecessary()
- 
rotateHeadIfNecessaryprivate void rotateHeadIfNecessary()
- 
rotateHeadTowardsFrontprivate void rotateHeadTowardsFront()
- 
notCarryingMobPassengersprivate boolean notCarryingMobPassengers()
- 
isMovingprivate boolean isMoving()
 
-