net.minecraft.entity.ai.control

public class LookControl

implements Control

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
field_6361
entity
protected float
yMaxRotSpeed
field_6359
maxYawChange
protected float
xMaxRotAngle
field_6358
maxPitchChange
protected int
lookAtCooldown
field_35103
lookAtTimer
protected double
wantedX
field_6364
x
protected double
wantedY
field_6363
y
protected double
wantedZ
field_6362
z

Constructor summary

ModifierConstructor
public (MobEntity entity)

Method summary

Modifier and TypeMethod
public void
setLookAt(Vec3 vec)
method_19615(class_243 arg0)
lookAt(Vec3d direction)
public void
setLookAt(Entity target)
method_35111(class_1297 arg0)
lookAt(Entity entity)
public void
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)
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)
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()
method_6231()
tick()
protected void
clampHeadRotationToBody()
method_36980()
clampHeadYaw()
protected boolean
resetXRotOnTick()
method_20433()
shouldStayHorizontal()
public boolean
isLookingAtTarget()
method_38970()
isLookingAtSpecificPosition()
public double
getWantedX()
method_6225()
getLookX()
public double
getWantedY()
method_6227()
getLookY()
public double
getWantedZ()
method_6228()
getLookZ()
protected Optional<Float>
getXRotD()
method_20250()
getTargetPitch()
protected Optional<Float>
getYRotD()
method_20251()
getTargetYaw()
private void
lambda$tick$1(Float arg0)
method_37355(Float arg0)
method_37355(Float pitch)
private void
lambda$tick$0(Float arg0)
method_37356(Float arg0)
method_37356(Float yaw)