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
The EntityLiving that is being moved
|
protected float |
moveForward |
protected float |
moveStrafe |
protected double |
posX |
protected double |
posY |
protected double |
posZ |
protected double |
speed
The speed at which the entity should move
|
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 p_75639_1_,
float p_75639_2_,
float p_75639_3_)
Limits the given angle to a upper and lower limit.
|
void |
onUpdateMoveHelper() |
void |
read(EntityMoveHelper that) |
void |
setMoveTo(double x,
double y,
double z,
double speedIn)
Sets the speed and location to move to
|
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 p_75639_1_, float p_75639_2_, float p_75639_3_)
public double getX()
public double getY()
public double getZ()