net.minecraft.entity.ai.control

public class LookControl

implements Control

net.minecraft.world.entity.ai.control.LookControl
net.minecraft.world.entity.ai.control.LookControl
net.minecraft.class_1333
net.minecraft.entity.ai.control.LookControl

Field summary

Modifier and TypeField
protected final MobEntity
mob
mob
field_6361
entity
protected float
yMaxRotSpeed
yMaxRotSpeed
field_6359
maxYawChange
protected float
xMaxRotAngle
xMaxRotAngle
field_6358
maxPitchChange
protected int
lookAtCooldown
lookAtCooldown
field_35103
lookAtTimer
protected double
wantedX
wantedX
field_6364
x
protected double
wantedY
wantedY
field_6363
y
protected double
wantedZ
wantedZ
field_6362
z

Constructor summary

ModifierConstructor
public (MobEntity entity)

Method summary

Modifier and TypeMethod
public void
setLookAt(Vec3 vec)
setLookAt(Vec3 vec)
method_19615(class_243 arg0)
lookAt(Vec3d direction)
public void
setLookAt(Entity target)
setLookAt(Entity target)
method_35111(class_1297 arg0)
lookAt(Entity entity)
public void
setLookAt(Entity target, float yMaxRotSpeed, float xMaxRotAngle)
setLookAt(Entity target, float yMaxRotSpeed, float xMaxRotAngle)
method_6226(class_1297 arg0, float arg1, float arg2)
lookAt(Entity entity, float maxYawChange, float maxPitchChange)
public void
setLookAt(double x, double y, double z)
setLookAt(double x, double y, double z)
method_20248(double arg0, double arg1, double arg2)
lookAt(double x, double y, double z)
public void
setLookAt(double x, double y, double z, float yMaxRotSpeed, float xMaxRotAngle)
setLookAt(double x, double y, double z, float yMaxRotSpeed, float xMaxRotAngle)
method_6230(double arg0, double arg1, double arg2, float arg3, float arg4)
lookAt(double x, double y, double z, float maxYawChange, float maxPitchChange)
public void
tick()
tick()
method_6231()
tick()
protected void
clampHeadRotationToBody()
clampHeadRotationToBody()
method_36980()
clampHeadYaw()
protected boolean
resetXRotOnTick()
resetXRotOnTick()
method_20433()
shouldStayHorizontal()
public boolean
isLookingAtTarget()
isLookingAtTarget()
method_38970()
isLookingAtSpecificPosition()
public double
getWantedX()
getWantedX()
method_6225()
getLookX()
public double
getWantedY()
getWantedY()
method_6227()
getLookY()
public double
getWantedZ()
getWantedZ()
method_6228()
getLookZ()
protected Optional<Float>
getXRotD()
getXRotD()
method_20250()
getTargetPitch()
protected Optional<Float>
getYRotD()
getYRotD()
method_20251()
getTargetYaw()