Class LookController
- java.lang.Object
-
- net.minecraft.entity.ai.controller.LookController
-
- Direct Known Subclasses:
BeeEntity.BeeLookController
,DolphinLookController
,FoxEntity.LookHelperController
,PhantomEntity.LookHelperController
public class LookController extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
hasWanted
protected MobEntity
mob
protected double
wantedX
protected double
wantedY
protected double
wantedZ
protected float
xMaxRotAngle
protected float
yMaxRotSpeed
-
Constructor Summary
Constructors Constructor Description LookController(MobEntity p_i1613_1_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getWantedX()
double
getWantedY()
private static double
getWantedY(Entity p_220676_0_)
double
getWantedZ()
protected float
getXRotD()
protected float
getYRotD()
boolean
isHasWanted()
protected boolean
resetXRotOnTick()
protected float
rotateTowards(float p_220675_1_, float p_220675_2_, float p_220675_3_)
void
setLookAt(double p_220679_1_, double p_220679_3_, double p_220679_5_)
void
setLookAt(double p_75650_1_, double p_75650_3_, double p_75650_5_, float p_75650_7_, float p_75650_8_)
void
setLookAt(Entity p_75651_1_, float p_75651_2_, float p_75651_3_)
void
setLookAt(Vector3d p_220674_1_)
void
tick()
-
-
-
Field Detail
-
mob
protected final MobEntity mob
-
yMaxRotSpeed
protected float yMaxRotSpeed
-
xMaxRotAngle
protected float xMaxRotAngle
-
hasWanted
protected boolean hasWanted
-
wantedX
protected double wantedX
-
wantedY
protected double wantedY
-
wantedZ
protected double wantedZ
-
-
Constructor Detail
-
LookController
public LookController(MobEntity p_i1613_1_)
-
-
Method Detail
-
setLookAt
public void setLookAt(Vector3d p_220674_1_)
-
setLookAt
public void setLookAt(Entity p_75651_1_, float p_75651_2_, float p_75651_3_)
-
setLookAt
public void setLookAt(double p_220679_1_, double p_220679_3_, double p_220679_5_)
-
setLookAt
public void setLookAt(double p_75650_1_, double p_75650_3_, double p_75650_5_, float p_75650_7_, float p_75650_8_)
-
tick
public void tick()
-
resetXRotOnTick
protected boolean resetXRotOnTick()
-
isHasWanted
public boolean isHasWanted()
-
getWantedX
public double getWantedX()
-
getWantedY
public double getWantedY()
-
getWantedZ
public double getWantedZ()
-
getXRotD
protected float getXRotD()
-
getYRotD
protected float getYRotD()
-
rotateTowards
protected float rotateTowards(float p_220675_1_, float p_220675_2_, float p_220675_3_)
-
getWantedY
private static double getWantedY(Entity p_220676_0_)
-
-