Package net.minecraft.entity.ai.control
Class LookControl
java.lang.Object
net.minecraft.entity.ai.control.LookControl
- All Implemented Interfaces:
Control
- Direct Known Subclasses:
BeeEntity.BeeLookControl,FoxEntity.FoxLookControl,FrogEntity.FrogLookControl,PhantomEntity.PhantomLookControl,ShulkerEntity.ShulkerLookControl,YawAdjustingLookControl
The look control adjusts a mob's rotations to look at a target position.
- Mappings:
Namespace Name intermediary net/minecraft/class_1333official blvnamed net/minecraft/entity/ai/control/LookControl
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final MobEntityprotected intprotected floatprotected floatprotected doubleprotected doubleprotected double -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected floatchangeAngle(float from, float to, float max) Changes the angle fromfromtoto, or bymaxdegrees iftois too big a change.protected voidprivate static doublegetLookingHeightFor(Entity entity) doublegetLookX()doublegetLookY()doublegetLookZ()booleanvoidlookAt(double x, double y, double z) voidlookAt(double x, double y, double z, float maxYawChange, float maxPitchChange) voidvoidvoidprotected booleanvoidtick()
-
Field Details
-
entity
- Mappings:
Namespace Name Mixin selector intermediary field_6361Lnet/minecraft/class_1333;field_6361:Lnet/minecraft/class_1308;official aLblv;a:Lbfz;named entityLnet/minecraft/entity/ai/control/LookControl;entity:Lnet/minecraft/entity/mob/MobEntity;
-
maxYawChange
protected float maxYawChange- Mappings:
Namespace Name Mixin selector intermediary field_6359Lnet/minecraft/class_1333;field_6359:Fofficial bLblv;b:Fnamed maxYawChangeLnet/minecraft/entity/ai/control/LookControl;maxYawChange:F
-
maxPitchChange
protected float maxPitchChange- Mappings:
Namespace Name Mixin selector intermediary field_6358Lnet/minecraft/class_1333;field_6358:Fofficial cLblv;c:Fnamed maxPitchChangeLnet/minecraft/entity/ai/control/LookControl;maxPitchChange:F
-
lookAtTimer
protected int lookAtTimer- Mappings:
Namespace Name Mixin selector intermediary field_35103Lnet/minecraft/class_1333;field_35103:Iofficial dLblv;d:Inamed lookAtTimerLnet/minecraft/entity/ai/control/LookControl;lookAtTimer:I
-
x
protected double x- Mappings:
Namespace Name Mixin selector intermediary field_6364Lnet/minecraft/class_1333;field_6364:Dofficial eLblv;e:Dnamed xLnet/minecraft/entity/ai/control/LookControl;x:D
-
y
protected double y- Mappings:
Namespace Name Mixin selector intermediary field_6363Lnet/minecraft/class_1333;field_6363:Dofficial fLblv;f:Dnamed yLnet/minecraft/entity/ai/control/LookControl;y:D
-
z
protected double z- Mappings:
Namespace Name Mixin selector intermediary field_6362Lnet/minecraft/class_1333;field_6362:Dofficial gLblv;g:Dnamed zLnet/minecraft/entity/ai/control/LookControl;z:D
-
-
Constructor Details
-
LookControl
- Mappings:
Namespace Name Mixin selector intermediary <init>Lnet/minecraft/class_1333;<init>(Lnet/minecraft/class_1308;)Vofficial <init>Lblv;<init>(Lbfz;)Vnamed <init>Lnet/minecraft/entity/ai/control/LookControl;<init>(Lnet/minecraft/entity/mob/MobEntity;)V
-
-
Method Details
-
lookAt
- Mappings:
Namespace Name Mixin selector intermediary method_19615Lnet/minecraft/class_1333;method_19615(Lnet/minecraft/class_243;)Vofficial aLblv;a(Leea;)Vnamed lookAtLnet/minecraft/entity/ai/control/LookControl;lookAt(Lnet/minecraft/util/math/Vec3d;)V
-
lookAt
- Mappings:
Namespace Name Mixin selector intermediary method_35111Lnet/minecraft/class_1333;method_35111(Lnet/minecraft/class_1297;)Vofficial aLblv;a(Lbfh;)Vnamed lookAtLnet/minecraft/entity/ai/control/LookControl;lookAt(Lnet/minecraft/entity/Entity;)V
-
lookAt
- Mappings:
Namespace Name Mixin selector intermediary method_6226Lnet/minecraft/class_1333;method_6226(Lnet/minecraft/class_1297;FF)Vofficial aLblv;a(Lbfh;FF)Vnamed lookAtLnet/minecraft/entity/ai/control/LookControl;lookAt(Lnet/minecraft/entity/Entity;FF)V
-
lookAt
public void lookAt(double x, double y, double z) - Mappings:
Namespace Name Mixin selector intermediary method_20248Lnet/minecraft/class_1333;method_20248(DDD)Vofficial aLblv;a(DDD)Vnamed lookAtLnet/minecraft/entity/ai/control/LookControl;lookAt(DDD)V
-
lookAt
public void lookAt(double x, double y, double z, float maxYawChange, float maxPitchChange) - Mappings:
Namespace Name Mixin selector intermediary method_6230Lnet/minecraft/class_1333;method_6230(DDDFF)Vofficial aLblv;a(DDDFF)Vnamed lookAtLnet/minecraft/entity/ai/control/LookControl;lookAt(DDDFF)V
-
tick
public void tick()- Mappings:
Namespace Name Mixin selector intermediary method_6231Lnet/minecraft/class_1333;method_6231()Vofficial aLblv;a()Vnamed tickLnet/minecraft/entity/ai/control/LookControl;tick()V
-
clampHeadYaw
protected void clampHeadYaw()- Mappings:
Namespace Name Mixin selector intermediary method_36980Lnet/minecraft/class_1333;method_36980()Vofficial bLblv;b()Vnamed clampHeadYawLnet/minecraft/entity/ai/control/LookControl;clampHeadYaw()V
-
shouldStayHorizontal
protected boolean shouldStayHorizontal()- Mappings:
Namespace Name Mixin selector intermediary method_20433Lnet/minecraft/class_1333;method_20433()Zofficial cLblv;c()Znamed shouldStayHorizontalLnet/minecraft/entity/ai/control/LookControl;shouldStayHorizontal()Z
-
isLookingAtSpecificPosition
public boolean isLookingAtSpecificPosition()- Mappings:
Namespace Name Mixin selector intermediary method_38970Lnet/minecraft/class_1333;method_38970()Zofficial dLblv;d()Znamed isLookingAtSpecificPositionLnet/minecraft/entity/ai/control/LookControl;isLookingAtSpecificPosition()Z
-
getLookX
public double getLookX()- Mappings:
Namespace Name Mixin selector intermediary method_6225Lnet/minecraft/class_1333;method_6225()Dofficial eLblv;e()Dnamed getLookXLnet/minecraft/entity/ai/control/LookControl;getLookX()D
-
getLookY
public double getLookY()- Mappings:
Namespace Name Mixin selector intermediary method_6227Lnet/minecraft/class_1333;method_6227()Dofficial fLblv;f()Dnamed getLookYLnet/minecraft/entity/ai/control/LookControl;getLookY()D
-
getLookZ
public double getLookZ()- Mappings:
Namespace Name Mixin selector intermediary method_6228Lnet/minecraft/class_1333;method_6228()Dofficial gLblv;g()Dnamed getLookZLnet/minecraft/entity/ai/control/LookControl;getLookZ()D
-
getTargetPitch
- Mappings:
Namespace Name Mixin selector intermediary method_20250Lnet/minecraft/class_1333;method_20250()Ljava/util/Optional;official hLblv;h()Ljava/util/Optional;named getTargetPitchLnet/minecraft/entity/ai/control/LookControl;getTargetPitch()Ljava/util/Optional;
-
getTargetYaw
- Mappings:
Namespace Name Mixin selector intermediary method_20251Lnet/minecraft/class_1333;method_20251()Ljava/util/Optional;official iLblv;i()Ljava/util/Optional;named getTargetYawLnet/minecraft/entity/ai/control/LookControl;getTargetYaw()Ljava/util/Optional;
-
changeAngle
protected float changeAngle(float from, float to, float max) Changes the angle fromfromtoto, or bymaxdegrees iftois too big a change.This is the same as
MobEntity.changeAngle(float, float, float).- Mappings:
Namespace Name Mixin selector intermediary method_6229Lnet/minecraft/class_1333;method_6229(FFF)Fofficial aLblv;a(FFF)Fnamed changeAngleLnet/minecraft/entity/ai/control/LookControl;changeAngle(FFF)F
-
getLookingHeightFor
- Mappings:
Namespace Name Mixin selector intermediary method_20249Lnet/minecraft/class_1333;method_20249(Lnet/minecraft/class_1297;)Dofficial bLblv;b(Lbfh;)Dnamed getLookingHeightForLnet/minecraft/entity/ai/control/LookControl;getLookingHeightFor(Lnet/minecraft/entity/Entity;)D
-