public class MoveControl extends Object
Modifier and Type | Class and Description |
---|---|
static class |
MoveControl.State |
Modifier and Type | Field and Description |
---|---|
protected MobEntity |
entity |
protected float |
forwardMovement |
protected float |
sidewaysMovement |
protected double |
speed |
protected MoveControl.State |
state |
protected double |
targetX |
protected double |
targetY |
protected double |
targetZ |
Constructor and Description |
---|
MoveControl(MobEntity entity) |
Modifier and Type | Method and Description |
---|---|
protected float |
changeAngle(float from,
float to,
float max) |
double |
getSpeed() |
double |
getTargetX() |
double |
getTargetY() |
double |
getTargetZ() |
boolean |
isMoving() |
private boolean |
method_25946(float float2,
float float3) |
void |
moveTo(double x,
double y,
double z,
double speed) |
void |
strafeTo(float forward,
float sideways) |
void |
tick() |
protected final MobEntity entity
protected double targetX
protected double targetY
protected double targetZ
protected double speed
protected float forwardMovement
protected float sidewaysMovement
protected MoveControl.State state
public MoveControl(MobEntity entity)
public boolean isMoving()
public double getSpeed()
public void moveTo(double x, double y, double z, double speed)
public void strafeTo(float forward, float sideways)
public void tick()
private boolean method_25946(float float2, float float3)
protected float changeAngle(float from, float to, float max)
public double getTargetX()
public double getTargetY()
public double getTargetZ()