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
public class MovementController extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MovementController.Action
-
Field Summary
Fields Modifier and Type Field Description protected MobEntity
mob
protected MovementController.Action
operation
protected double
speedModifier
protected float
strafeForwards
protected float
strafeRight
protected double
wantedX
protected double
wantedY
protected double
wantedZ
-
Constructor Summary
Constructors Constructor Description MovementController(MobEntity p_i1614_1_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getSpeedModifier()
double
getWantedX()
double
getWantedY()
double
getWantedZ()
boolean
hasWanted()
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 Detail
-
mob
protected final MobEntity 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
protected MovementController.Action operation
-
-
Constructor Detail
-
MovementController
public MovementController(MobEntity p_i1614_1_)
-
-
Method Detail
-
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()
-
-