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,CamelEntity.CamelLookControl,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 named net/minecraft/entity/ai/control/LookControlintermediary net/minecraft/class_1333official bzo
-
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 named entityLnet/minecraft/entity/ai/control/LookControl;entity:Lnet/minecraft/entity/mob/MobEntity;intermediary field_6361Lnet/minecraft/class_1333;field_6361:Lnet/minecraft/class_1308;official aLbzo;a:Lbtp;
-
maxYawChange
protected float maxYawChange- Mappings:
Namespace Name Mixin selector named maxYawChangeLnet/minecraft/entity/ai/control/LookControl;maxYawChange:Fintermediary field_6359Lnet/minecraft/class_1333;field_6359:Fofficial bLbzo;b:F
-
maxPitchChange
protected float maxPitchChange- Mappings:
Namespace Name Mixin selector named maxPitchChangeLnet/minecraft/entity/ai/control/LookControl;maxPitchChange:Fintermediary field_6358Lnet/minecraft/class_1333;field_6358:Fofficial cLbzo;c:F
-
lookAtTimer
protected int lookAtTimer- Mappings:
Namespace Name Mixin selector named lookAtTimerLnet/minecraft/entity/ai/control/LookControl;lookAtTimer:Iintermediary field_35103Lnet/minecraft/class_1333;field_35103:Iofficial dLbzo;d:I
-
x
protected double x- Mappings:
Namespace Name Mixin selector named xLnet/minecraft/entity/ai/control/LookControl;x:Dintermediary field_6364Lnet/minecraft/class_1333;field_6364:Dofficial eLbzo;e:D
-
y
protected double y- Mappings:
Namespace Name Mixin selector named yLnet/minecraft/entity/ai/control/LookControl;y:Dintermediary field_6363Lnet/minecraft/class_1333;field_6363:Dofficial fLbzo;f:D
-
z
protected double z- Mappings:
Namespace Name Mixin selector named zLnet/minecraft/entity/ai/control/LookControl;z:Dintermediary field_6362Lnet/minecraft/class_1333;field_6362:Dofficial gLbzo;g:D
-
-
Constructor Details
-
LookControl
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/entity/ai/control/LookControl;<init>(Lnet/minecraft/entity/mob/MobEntity;)Vintermediary <init>Lnet/minecraft/class_1333;<init>(Lnet/minecraft/class_1308;)Vofficial <init>Lbzo;<init>(Lbtp;)V
-
-
Method Details
-
lookAt
- Mappings:
Namespace Name Mixin selector named lookAtLnet/minecraft/entity/ai/control/LookControl;lookAt(Lnet/minecraft/util/math/Vec3d;)Vintermediary method_19615Lnet/minecraft/class_1333;method_19615(Lnet/minecraft/class_243;)Vofficial aLbzo;a(Lexc;)V
-
lookAt
- Mappings:
Namespace Name Mixin selector named lookAtLnet/minecraft/entity/ai/control/LookControl;lookAt(Lnet/minecraft/entity/Entity;)Vintermediary method_35111Lnet/minecraft/class_1333;method_35111(Lnet/minecraft/class_1297;)Vofficial aLbzo;a(Lbsr;)V
-
lookAt
- Mappings:
Namespace Name Mixin selector named lookAtLnet/minecraft/entity/ai/control/LookControl;lookAt(Lnet/minecraft/entity/Entity;FF)Vintermediary method_6226Lnet/minecraft/class_1333;method_6226(Lnet/minecraft/class_1297;FF)Vofficial aLbzo;a(Lbsr;FF)V
-
lookAt
public void lookAt(double x, double y, double z) - Mappings:
Namespace Name Mixin selector named lookAtLnet/minecraft/entity/ai/control/LookControl;lookAt(DDD)Vintermediary method_20248Lnet/minecraft/class_1333;method_20248(DDD)Vofficial aLbzo;a(DDD)V
-
lookAt
public void lookAt(double x, double y, double z, float maxYawChange, float maxPitchChange) - Mappings:
Namespace Name Mixin selector named lookAtLnet/minecraft/entity/ai/control/LookControl;lookAt(DDDFF)Vintermediary method_6230Lnet/minecraft/class_1333;method_6230(DDDFF)Vofficial aLbzo;a(DDDFF)V
-
tick
public void tick()- Mappings:
Namespace Name Mixin selector named tickLnet/minecraft/entity/ai/control/LookControl;tick()Vintermediary method_6231Lnet/minecraft/class_1333;method_6231()Vofficial aLbzo;a()V
-
clampHeadYaw
protected void clampHeadYaw()- Mappings:
Namespace Name Mixin selector named clampHeadYawLnet/minecraft/entity/ai/control/LookControl;clampHeadYaw()Vintermediary method_36980Lnet/minecraft/class_1333;method_36980()Vofficial bLbzo;b()V
-
shouldStayHorizontal
protected boolean shouldStayHorizontal()- Mappings:
Namespace Name Mixin selector named shouldStayHorizontalLnet/minecraft/entity/ai/control/LookControl;shouldStayHorizontal()Zintermediary method_20433Lnet/minecraft/class_1333;method_20433()Zofficial cLbzo;c()Z
-
isLookingAtSpecificPosition
public boolean isLookingAtSpecificPosition()- Mappings:
Namespace Name Mixin selector named isLookingAtSpecificPositionLnet/minecraft/entity/ai/control/LookControl;isLookingAtSpecificPosition()Zintermediary method_38970Lnet/minecraft/class_1333;method_38970()Zofficial dLbzo;d()Z
-
getLookX
public double getLookX()- Mappings:
Namespace Name Mixin selector named getLookXLnet/minecraft/entity/ai/control/LookControl;getLookX()Dintermediary method_6225Lnet/minecraft/class_1333;method_6225()Dofficial eLbzo;e()D
-
getLookY
public double getLookY()- Mappings:
Namespace Name Mixin selector named getLookYLnet/minecraft/entity/ai/control/LookControl;getLookY()Dintermediary method_6227Lnet/minecraft/class_1333;method_6227()Dofficial fLbzo;f()D
-
getLookZ
public double getLookZ()- Mappings:
Namespace Name Mixin selector named getLookZLnet/minecraft/entity/ai/control/LookControl;getLookZ()Dintermediary method_6228Lnet/minecraft/class_1333;method_6228()Dofficial gLbzo;g()D
-
getTargetPitch
- Mappings:
Namespace Name Mixin selector named getTargetPitchLnet/minecraft/entity/ai/control/LookControl;getTargetPitch()Ljava/util/Optional;intermediary method_20250Lnet/minecraft/class_1333;method_20250()Ljava/util/Optional;official hLbzo;h()Ljava/util/Optional;
-
getTargetYaw
- Mappings:
Namespace Name Mixin selector named getTargetYawLnet/minecraft/entity/ai/control/LookControl;getTargetYaw()Ljava/util/Optional;intermediary method_20251Lnet/minecraft/class_1333;method_20251()Ljava/util/Optional;official iLbzo;i()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 named changeAngleLnet/minecraft/entity/ai/control/LookControl;changeAngle(FFF)Fintermediary method_6229Lnet/minecraft/class_1333;method_6229(FFF)Fofficial aLbzo;a(FFF)F
-
getLookingHeightFor
- Mappings:
Namespace Name Mixin selector named getLookingHeightForLnet/minecraft/entity/ai/control/LookControl;getLookingHeightFor(Lnet/minecraft/entity/Entity;)Dintermediary method_20249Lnet/minecraft/class_1333;method_20249(Lnet/minecraft/class_1297;)Dofficial bLbzo;b(Lbsr;)D
-