public class LookController
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected float |
deltaLookPitch |
protected float |
deltaLookYaw |
protected boolean |
isLooking |
protected MobEntity |
mob |
protected double |
posX |
protected double |
posY |
protected double |
posZ |
Constructor and Description |
---|
LookController(MobEntity mob) |
Modifier and Type | Method and Description |
---|---|
protected float |
clampedRotate(float from,
float to,
float maxDelta) |
protected boolean |
func_220680_b() |
private static double |
getEyePosition(Entity p_220676_0_) |
boolean |
getIsLooking() |
double |
getLookPosX() |
double |
getLookPosY() |
double |
getLookPosZ() |
protected float |
getTargetPitch() |
protected float |
getTargetYaw() |
void |
setLookPosition(double p_220679_1_,
double p_220679_3_,
double p_220679_5_) |
void |
setLookPosition(double x,
double y,
double z,
float deltaYaw,
float deltaPitch) |
void |
setLookPosition(Vec3d p_220674_1_) |
void |
setLookPositionWithEntity(Entity entityIn,
float deltaYaw,
float deltaPitch) |
void |
tick() |
protected final MobEntity mob
protected float deltaLookYaw
protected float deltaLookPitch
protected boolean isLooking
protected double posX
protected double posY
protected double posZ
public LookController(MobEntity mob)
public void setLookPosition(Vec3d p_220674_1_)
public void setLookPositionWithEntity(Entity entityIn, float deltaYaw, float deltaPitch)
public void setLookPosition(double p_220679_1_, double p_220679_3_, double p_220679_5_)
public void setLookPosition(double x, double y, double z, float deltaYaw, float deltaPitch)
public void tick()
protected boolean func_220680_b()
public boolean getIsLooking()
public double getLookPosX()
public double getLookPosY()
public double getLookPosZ()
protected float getTargetPitch()
protected float getTargetYaw()
protected float clampedRotate(float from, float to, float maxDelta)
private static double getEyePosition(Entity p_220676_0_)