Class MovementController
java.lang.Object
net.minecraft.entity.ai.controller.MovementController
- Direct Known Subclasses:
AbstractFishEntity.MoveHelperController
,DolphinEntity.MoveHelperController
,DrownedEntity.MoveHelperController
,FlyingMovementController
,FoxEntity.MoveHelperController
,GhastEntity.MoveHelperController
,GuardianEntity.MoveHelperController
,PandaEntity.MoveHelperController
,PhantomEntity.MoveHelperController
,RabbitEntity.MoveHelperController
,SlimeEntity.MoveHelperController
,TurtleEntity.MoveHelperController
,VexEntity.MoveHelperController
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final MobEntity
protected MovementController.Action
protected double
protected float
protected float
protected double
protected double
protected double
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondouble
double
double
double
boolean
private boolean
isWalkable
(float p_234024_1_, float p_234024_2_) protected float
rotlerp
(float p_75639_1_, float p_75639_2_, float p_75639_3_) void
setWantedPosition
(double p_75642_1_, double p_75642_3_, double p_75642_5_, double p_75642_7_) void
strafe
(float p_188488_1_, float p_188488_2_) void
tick()
-
Field Details
-
mob
-
wantedX
protected double wantedX -
wantedY
protected double wantedY -
wantedZ
protected double wantedZ -
speedModifier
protected double speedModifier -
strafeForwards
protected float strafeForwards -
strafeRight
protected float strafeRight -
operation
-
-
Constructor Details
-
MovementController
-
-
Method Details
-
hasWanted
public boolean hasWanted() -
getSpeedModifier
public double getSpeedModifier() -
setWantedPosition
public void setWantedPosition(double p_75642_1_, double p_75642_3_, double p_75642_5_, double p_75642_7_) -
strafe
public void strafe(float p_188488_1_, float p_188488_2_) -
tick
public void tick() -
isWalkable
private boolean isWalkable(float p_234024_1_, float p_234024_2_) -
rotlerp
protected float rotlerp(float p_75639_1_, float p_75639_2_, float p_75639_3_) -
getWantedX
public double getWantedX() -
getWantedY
public double getWantedY() -
getWantedZ
public double getWantedZ()
-