public class EntityMoveHelper
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
EntityMoveHelper.Action |
Modifier and Type | Field and Description |
---|---|
EntityMoveHelper.Action |
action |
protected EntityLiving |
entity |
protected float |
moveForward |
protected float |
moveStrafe |
protected double |
posX |
protected double |
posY |
protected double |
posZ |
protected double |
speed |
Constructor and Description |
---|
EntityMoveHelper(EntityLiving entitylivingIn) |
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 |
onUpdateMoveHelper() |
void |
read(EntityMoveHelper that) |
void |
setMoveTo(double x,
double y,
double z,
double speedIn) |
void |
strafe(float forward,
float strafe) |
protected final EntityLiving entity
protected double posX
protected double posY
protected double posZ
protected double speed
protected float moveForward
protected float moveStrafe
public EntityMoveHelper.Action action
public EntityMoveHelper(EntityLiving entitylivingIn)
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 read(EntityMoveHelper that)
public void onUpdateMoveHelper()
protected float limitAngle(float sourceAngle, float targetAngle, float maximumChange)
public double getX()
public double getY()
public double getZ()