Class LookController
java.lang.Object
net.minecraft.entity.ai.controller.LookController
- Direct Known Subclasses:
BeeEntity.BeeLookController
,DolphinLookController
,FoxEntity.LookHelperController
,PhantomEntity.LookHelperController
-
Field Summary
Modifier and TypeFieldDescriptionprotected boolean
protected final MobEntity
protected double
protected double
protected double
protected float
protected float
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondouble
double
private static double
getWantedY
(Entity p_220676_0_) double
protected float
getXRotD()
protected float
getYRotD()
boolean
protected boolean
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
void
void
tick()
-
Field Details
-
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 Details
-
LookController
-
-
Method Details
-
setLookAt
-
setLookAt
-
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
-