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,CreakingEntity.CreakingLookControl,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 ccx
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final MobEntityprotected intprotected floatprotected floatprotected doubleprotected doubleprotected double -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected 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()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.entity.ai.control.Control
changeAngle
-
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 aLccx;a:Lbxb;
-
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 bLccx;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 cLccx;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 dLccx;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 eLccx;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 fLccx;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 gLccx;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>Lccx;<init>(Lbxb;)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 aLccx;a(Lfdw;)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 aLccx;a(Lbwa;)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 aLccx;a(Lbwa;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 aLccx;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 aLccx;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 aLccx;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 bLccx;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 cLccx;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 dLccx;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 eLccx;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 fLccx;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 gLccx;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 hLccx;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 iLccx;i()Ljava/util/Optional;
-
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 bLccx;b(Lbwa;)D
-