Class MoveControl
java.lang.Object
net.minecraft.world.entity.ai.control.MoveControl
- All Implemented Interfaces:
Control
- Direct Known Subclasses:
AbstractFish.FishMoveControl
,Drowned.DrownedMoveControl
,FlyingMoveControl
,Fox.FoxMoveControl
,Ghast.GhastMoveControl
,Guardian.GuardianMoveControl
,Panda.PandaMoveControl
,Phantom.PhantomMoveControl
,Rabbit.RabbitMoveControl
,Slime.SlimeMoveControl
,SmoothSwimmingMoveControl
,Turtle.TurtleMoveControl
,Vex.VexMoveControl
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final int
static final float
static final float
protected final Mob
protected MoveControl.Operation
protected double
protected float
protected float
protected double
protected double
protected double
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondouble
double
double
double
boolean
private boolean
isWalkable
(float p_24997_, float p_24998_) protected float
rotlerp
(float p_24992_, float p_24993_, float p_24994_) void
setWantedPosition
(double p_24984_, double p_24985_, double p_24986_, double p_24987_) void
strafe
(float p_24989_, float p_24990_) void
tick()
-
Field Details
-
MIN_SPEED
public static final float MIN_SPEED- See Also:
-
MIN_SPEED_SQR
public static final float MIN_SPEED_SQR- See Also:
-
MAX_TURN
protected static final int MAX_TURN- See Also:
-
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
-
MoveControl
-
-
Method Details
-
hasWanted
public boolean hasWanted() -
getSpeedModifier
public double getSpeedModifier() -
setWantedPosition
public void setWantedPosition(double p_24984_, double p_24985_, double p_24986_, double p_24987_) -
strafe
public void strafe(float p_24989_, float p_24990_) -
tick
public void tick() -
isWalkable
private boolean isWalkable(float p_24997_, float p_24998_) -
rotlerp
protected float rotlerp(float p_24992_, float p_24993_, float p_24994_) -
getWantedX
public double getWantedX() -
getWantedY
public double getWantedY() -
getWantedZ
public double getWantedZ()
-