public class EntityLookHelper
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private float |
deltaLookPitch
The amount of change that is made each update for an entity facing a direction.
|
private float |
deltaLookYaw
The amount of change that is made each update for an entity facing a direction.
|
private EntityLiving |
entity |
private boolean |
isLooking
Whether or not the entity is trying to look at something.
|
private double |
posX |
private double |
posY |
private double |
posZ |
Constructor and Description |
---|
EntityLookHelper(EntityLiving entitylivingIn) |
Modifier and Type | Method and Description |
---|---|
boolean |
getIsLooking() |
double |
getLookPosX() |
double |
getLookPosY() |
double |
getLookPosZ() |
void |
onUpdateLook()
Updates look
|
void |
setLookPosition(double x,
double y,
double z,
float deltaYaw,
float deltaPitch)
Sets position to look at
|
void |
setLookPositionWithEntity(Entity entityIn,
float deltaYaw,
float deltaPitch)
Sets position to look at using entity
|
private float |
updateRotation(float p_75652_1_,
float p_75652_2_,
float p_75652_3_) |
private EntityLiving entity
private float deltaLookYaw
private float deltaLookPitch
private boolean isLooking
private double posX
private double posY
private double posZ
public EntityLookHelper(EntityLiving entitylivingIn)
public void setLookPositionWithEntity(Entity entityIn, float deltaYaw, float deltaPitch)
public void setLookPosition(double x, double y, double z, float deltaYaw, float deltaPitch)
public void onUpdateLook()
private float updateRotation(float p_75652_1_, float p_75652_2_, float p_75652_3_)
public boolean getIsLooking()
public double getLookPosX()
public double getLookPosY()
public double getLookPosZ()