public class MovementController
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
MovementController.Action |
Modifier and Type | Field and Description |
---|---|
protected MovementController.Action |
action |
protected MobEntity |
mob |
protected float |
moveForward |
protected float |
moveStrafe |
protected double |
posX |
protected double |
posY |
protected double |
posZ |
protected double |
speed |
Constructor and Description |
---|
MovementController(MobEntity mob) |
Modifier and Type | Method and Description |
---|---|
double |
getSpeed() |
double |
getX() |
double |
getY() |
double |
getZ() |
boolean |
isUpdating() |
protected float |
limitAngle(float sourceAngle,
float targetAngle,
float maximumChange) |
void |
setMoveTo(double x,
double y,
double z,
double speedIn) |
void |
strafe(float forward,
float strafe) |
void |
tick() |
protected final MobEntity mob
protected double posX
protected double posY
protected double posZ
protected double speed
protected float moveForward
protected float moveStrafe
protected MovementController.Action action
public MovementController(MobEntity mob)
public boolean isUpdating()
public double getSpeed()
public void setMoveTo(double x, double y, double z, double speedIn)
public void strafe(float forward, float strafe)
public void tick()
protected float limitAngle(float sourceAngle, float targetAngle, float maximumChange)
public double getX()
public double getY()
public double getZ()