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 int
headStableTime
private float
lastStableYHeadRot
private MobEntity
mob
-
Constructor Summary
Constructors Constructor Description BodyController(MobEntity p_i50334_1_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clientTick()
private boolean
isMoving()
private boolean
notCarryingMobPassengers()
private void
rotateBodyIfNecessary()
private void
rotateHeadIfNecessary()
private void
rotateHeadTowardsFront()
-
-
-
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()
-
-