public class EntityMoveHelper
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected EntityLiving |
entity
The EntityLiving that is being moved
|
protected double |
posX |
protected double |
posY |
protected double |
posZ |
protected double |
speed
The speed at which the entity should move
|
protected boolean |
update |
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 |
setMoveTo(double x,
double y,
double z,
double speedIn)
Sets the speed and location to move to
|
protected EntityLiving entity
protected double posX
protected double posY
protected double posZ
protected double speed
protected boolean update
public EntityMoveHelper(EntityLiving entitylivingIn)
public boolean isUpdating()
public double getSpeed()
public void setMoveTo(double x, double y, double z, double speedIn)
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()