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 official blvintermediary net/minecraft/class_1333named 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 official aLblv;a:Lbfz;intermediary field_6361Lnet/minecraft/class_1333;field_6361:Lnet/minecraft/class_1308;named entityLnet/minecraft/entity/ai/control/LookControl;entity:Lnet/minecraft/entity/mob/MobEntity;
-
maxYawChange
protected float maxYawChange- Mappings:
Namespace Name Mixin selector official bLblv;b:Fintermediary field_6359Lnet/minecraft/class_1333;field_6359:Fnamed maxYawChangeLnet/minecraft/entity/ai/control/LookControl;maxYawChange:F
-
maxPitchChange
protected float maxPitchChange- Mappings:
Namespace Name Mixin selector official cLblv;c:Fintermediary field_6358Lnet/minecraft/class_1333;field_6358:Fnamed maxPitchChangeLnet/minecraft/entity/ai/control/LookControl;maxPitchChange:F
-
lookAtTimer
protected int lookAtTimer- Mappings:
Namespace Name Mixin selector official dLblv;d:Iintermediary field_35103Lnet/minecraft/class_1333;field_35103:Inamed lookAtTimerLnet/minecraft/entity/ai/control/LookControl;lookAtTimer:I
-
x
protected double x- Mappings:
Namespace Name Mixin selector official eLblv;e:Dintermediary field_6364Lnet/minecraft/class_1333;field_6364:Dnamed xLnet/minecraft/entity/ai/control/LookControl;x:D
-
y
protected double y- Mappings:
Namespace Name Mixin selector official fLblv;f:Dintermediary field_6363Lnet/minecraft/class_1333;field_6363:Dnamed yLnet/minecraft/entity/ai/control/LookControl;y:D
-
z
protected double z- Mappings:
Namespace Name Mixin selector official gLblv;g:Dintermediary field_6362Lnet/minecraft/class_1333;field_6362:Dnamed zLnet/minecraft/entity/ai/control/LookControl;z:D
-
-
Constructor Details
-
LookControl
- Mappings:
Namespace Name Mixin selector official <init>Lblv;<init>(Lbfz;)Vintermediary <init>Lnet/minecraft/class_1333;<init>(Lnet/minecraft/class_1308;)Vnamed <init>Lnet/minecraft/entity/ai/control/LookControl;<init>(Lnet/minecraft/entity/mob/MobEntity;)V
-
-
Method Details
-
lookAt
- Mappings:
Namespace Name Mixin selector official aLblv;a(Leea;)Vintermediary method_19615Lnet/minecraft/class_1333;method_19615(Lnet/minecraft/class_243;)Vnamed lookAtLnet/minecraft/entity/ai/control/LookControl;lookAt(Lnet/minecraft/util/math/Vec3d;)V
-
lookAt
- Mappings:
Namespace Name Mixin selector official aLblv;a(Lbfh;)Vintermediary method_35111Lnet/minecraft/class_1333;method_35111(Lnet/minecraft/class_1297;)Vnamed lookAtLnet/minecraft/entity/ai/control/LookControl;lookAt(Lnet/minecraft/entity/Entity;)V
-
lookAt
- Mappings:
Namespace Name Mixin selector official aLblv;a(Lbfh;FF)Vintermediary method_6226Lnet/minecraft/class_1333;method_6226(Lnet/minecraft/class_1297;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 official aLblv;a(DDD)Vintermediary method_20248Lnet/minecraft/class_1333;method_20248(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 official aLblv;a(DDDFF)Vintermediary method_6230Lnet/minecraft/class_1333;method_6230(DDDFF)Vnamed lookAtLnet/minecraft/entity/ai/control/LookControl;lookAt(DDDFF)V
-
tick
public void tick()- Mappings:
Namespace Name Mixin selector official aLblv;a()Vintermediary method_6231Lnet/minecraft/class_1333;method_6231()Vnamed tickLnet/minecraft/entity/ai/control/LookControl;tick()V
-
clampHeadYaw
protected void clampHeadYaw()- Mappings:
Namespace Name Mixin selector official bLblv;b()Vintermediary method_36980Lnet/minecraft/class_1333;method_36980()Vnamed clampHeadYawLnet/minecraft/entity/ai/control/LookControl;clampHeadYaw()V
-
shouldStayHorizontal
protected boolean shouldStayHorizontal()- Mappings:
Namespace Name Mixin selector official cLblv;c()Zintermediary method_20433Lnet/minecraft/class_1333;method_20433()Znamed shouldStayHorizontalLnet/minecraft/entity/ai/control/LookControl;shouldStayHorizontal()Z
-
isLookingAtSpecificPosition
public boolean isLookingAtSpecificPosition()- Mappings:
Namespace Name Mixin selector official dLblv;d()Zintermediary method_38970Lnet/minecraft/class_1333;method_38970()Znamed isLookingAtSpecificPositionLnet/minecraft/entity/ai/control/LookControl;isLookingAtSpecificPosition()Z
-
getLookX
public double getLookX()- Mappings:
Namespace Name Mixin selector official eLblv;e()Dintermediary method_6225Lnet/minecraft/class_1333;method_6225()Dnamed getLookXLnet/minecraft/entity/ai/control/LookControl;getLookX()D
-
getLookY
public double getLookY()- Mappings:
Namespace Name Mixin selector official fLblv;f()Dintermediary method_6227Lnet/minecraft/class_1333;method_6227()Dnamed getLookYLnet/minecraft/entity/ai/control/LookControl;getLookY()D
-
getLookZ
public double getLookZ()- Mappings:
Namespace Name Mixin selector official gLblv;g()Dintermediary method_6228Lnet/minecraft/class_1333;method_6228()Dnamed getLookZLnet/minecraft/entity/ai/control/LookControl;getLookZ()D
-
getTargetPitch
- Mappings:
Namespace Name Mixin selector official hLblv;h()Ljava/util/Optional;intermediary method_20250Lnet/minecraft/class_1333;method_20250()Ljava/util/Optional;named getTargetPitchLnet/minecraft/entity/ai/control/LookControl;getTargetPitch()Ljava/util/Optional;
-
getTargetYaw
- Mappings:
Namespace Name Mixin selector official iLblv;i()Ljava/util/Optional;intermediary method_20251Lnet/minecraft/class_1333;method_20251()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 official aLblv;a(FFF)Fintermediary method_6229Lnet/minecraft/class_1333;method_6229(FFF)Fnamed changeAngleLnet/minecraft/entity/ai/control/LookControl;changeAngle(FFF)F
-
getLookingHeightFor
- Mappings:
Namespace Name Mixin selector official bLblv;b(Lbfh;)Dintermediary method_20249Lnet/minecraft/class_1333;method_20249(Lnet/minecraft/class_1297;)Dnamed getLookingHeightForLnet/minecraft/entity/ai/control/LookControl;getLookingHeightFor(Lnet/minecraft/entity/Entity;)D
-