net.minecraft.entity.ai.control

public class MoveControl<T extends MobEntity>

implements Control

net.minecraft.world.entity.ai.control.MoveControl
net.minecraft.class_1335
net.minecraft.entity.ai.control.MoveControl

Field summary

Modifier and TypeField
public static final float
MIN_SPEED
field_30197
field_30197
public static final float
MIN_SPEED_SQR
field_30198
REACHED_DESTINATION_DISTANCE_SQUARED
protected static final int
MAX_TURN
field_30199
field_30199
protected final T
mob
field_6371
entity
protected double
wantedX
field_6370
targetX
protected double
wantedY
field_6369
targetY
protected double
wantedZ
field_6367
targetZ
protected double
speedModifier
field_6372
speed
protected float
strafeForwards
field_6368
forwardMovement
protected float
strafeRight
field_6373
sidewaysMovement
protected MoveControl$State
operation
field_6374
state

Constructor summary

ModifierConstructor
public (T entity)

Method summary

Modifier and TypeMethod
public boolean
hasWanted()
method_6241()
isMoving()
public double
getSpeedModifier()
method_6242()
getSpeed()
public void
setWantedPosition(double x, double y, double z, double speedModifier)
method_6239(double arg0, double arg1, double arg2, double arg3)
moveTo(double x, double y, double z, double speed)
public void
strafe(float forwards, float right)
method_6243(float arg0, float arg1)
strafeTo(float forward, float sideways)
public void
tick()
method_6240()
tick()
private boolean
isWalkable(float dx, float dz)
method_25946(float arg0, float arg1)
isPosWalkable(float x, float z)
protected float
rotlerp(float a, float b, float max)
method_6238(float arg0, float arg1, float arg2)
wrapDegrees(float from, float to, float max)
public double
getWantedX()
method_6236()
getTargetX()
public double
getWantedY()
method_6235()
getTargetY()
public double
getWantedZ()
method_6237()
getTargetZ()
public void
setWait()
method_70683()
setWaiting()