Class BodyController
- java.lang.Object
-
- net.minecraft.entity.ai.controller.BodyController
-
- Direct Known Subclasses:
PhantomEntity.BodyHelperController,ShulkerEntity.BodyHelperController
public class BodyController extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private intheadStableTimeprivate floatlastStableYHeadRotprivate MobEntitymob
-
Constructor Summary
Constructors Constructor Description BodyController(MobEntity p_i50334_1_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclientTick()private booleanisMoving()private booleannotCarryingMobPassengers()private voidrotateBodyIfNecessary()private voidrotateHeadIfNecessary()private voidrotateHeadTowardsFront()
-
-
-
Field Detail
-
mob
private final MobEntity mob
-
headStableTime
private int headStableTime
-
lastStableYHeadRot
private float lastStableYHeadRot
-
-
Constructor Detail
-
BodyController
public BodyController(MobEntity p_i50334_1_)
-
-
Method Detail
-
clientTick
public void clientTick()
-
rotateBodyIfNecessary
private void rotateBodyIfNecessary()
-
rotateHeadIfNecessary
private void rotateHeadIfNecessary()
-
rotateHeadTowardsFront
private void rotateHeadTowardsFront()
-
notCarryingMobPassengers
private boolean notCarryingMobPassengers()
-
isMoving
private boolean isMoving()
-
-