Package net.minecraft.entity.ai.control
Class LookControl
java.lang.Object
net.minecraft.entity.ai.control.LookControl
- All Implemented Interfaces:
Control
- Direct Known Subclasses:
AquaticLookControl,BeeEntity.BeeLookControl,FoxEntity.FoxLookControl,PhantomEntity.PhantomLookControl,ShulkerEntity.class_6376
- Mappings:
Namespace Name official ayrintermediary net/minecraft/class_1333named net/minecraft/entity/ai/control/LookControl
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected floatchangeAngle(float from, float to, float max)private static doublegetLookingHeightFor(Entity entity)doublegetLookX()doublegetLookY()doublegetLookZ()protected floatprotected floatbooleanisActive()voidlookAt(double x, double y, double z)voidlookAt(double x, double y, double z, float yawSpeed, float pitchSpeed)voidvoidvoidprotected voidprotected booleanvoidtick()
-
Field Details
-
entity
- Mappings:
Namespace Name Mixin selector official aLayr;a:Latv;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;
-
yawSpeed
protected float yawSpeed- Mappings:
Namespace Name Mixin selector official bLayr;b:Fintermediary field_6359Lnet/minecraft/class_1333;field_6359:Fnamed yawSpeedLnet/minecraft/entity/ai/control/LookControl;yawSpeed:F
-
pitchSpeed
protected float pitchSpeed- Mappings:
Namespace Name Mixin selector official cLayr;c:Fintermediary field_6358Lnet/minecraft/class_1333;field_6358:Fnamed pitchSpeedLnet/minecraft/entity/ai/control/LookControl;pitchSpeed:F
-
active
protected boolean active- Mappings:
Namespace Name Mixin selector official dLayr;d:Zintermediary field_6360Lnet/minecraft/class_1333;field_6360:Znamed activeLnet/minecraft/entity/ai/control/LookControl;active:Z
-
lookX
protected double lookX- Mappings:
Namespace Name Mixin selector official eLayr;e:Dintermediary field_6364Lnet/minecraft/class_1333;field_6364:Dnamed lookXLnet/minecraft/entity/ai/control/LookControl;lookX:D
-
lookY
protected double lookY- Mappings:
Namespace Name Mixin selector official fLayr;f:Dintermediary field_6363Lnet/minecraft/class_1333;field_6363:Dnamed lookYLnet/minecraft/entity/ai/control/LookControl;lookY:D
-
lookZ
protected double lookZ- Mappings:
Namespace Name Mixin selector official gLayr;g:Dintermediary field_6362Lnet/minecraft/class_1333;field_6362:Dnamed lookZLnet/minecraft/entity/ai/control/LookControl;lookZ:D
-
-
Constructor Details
-
LookControl
- Mappings:
Namespace Name Mixin selector official <init>Layr;<init>(Latv;)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 aLayr;a(Ldna;)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 aLayr;a(Latf;)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 aLayr;a(Latf;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 aLayr;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 yawSpeed, float pitchSpeed)- Mappings:
Namespace Name Mixin selector official aLayr;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 aLayr;a()Vintermediary method_6231Lnet/minecraft/class_1333;method_6231()Vnamed tickLnet/minecraft/entity/ai/control/LookControl;tick()V
-
method_36980
protected void method_36980()- Mappings:
Namespace Name Mixin selector official bLayr;b()Vintermediary method_36980Lnet/minecraft/class_1333;method_36980()Vnamed method_36980Lnet/minecraft/entity/ai/control/LookControl;method_36980()V
-
shouldStayHorizontal
protected boolean shouldStayHorizontal()- Mappings:
Namespace Name Mixin selector official cLayr;c()Zintermediary method_20433Lnet/minecraft/class_1333;method_20433()Znamed shouldStayHorizontalLnet/minecraft/entity/ai/control/LookControl;shouldStayHorizontal()Z
-
isActive
public boolean isActive()- Mappings:
Namespace Name Mixin selector official dLayr;d()Zintermediary method_6232Lnet/minecraft/class_1333;method_6232()Znamed isActiveLnet/minecraft/entity/ai/control/LookControl;isActive()Z
-
getLookX
public double getLookX()- Mappings:
Namespace Name Mixin selector official eLayr;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 fLayr;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 gLayr;g()Dintermediary method_6228Lnet/minecraft/class_1333;method_6228()Dnamed getLookZLnet/minecraft/entity/ai/control/LookControl;getLookZ()D
-
getTargetPitch
protected float getTargetPitch()- Mappings:
Namespace Name Mixin selector official hLayr;h()Fintermediary method_20250Lnet/minecraft/class_1333;method_20250()Fnamed getTargetPitchLnet/minecraft/entity/ai/control/LookControl;getTargetPitch()F
-
getTargetYaw
protected float getTargetYaw()- Mappings:
Namespace Name Mixin selector official iLayr;i()Fintermediary method_20251Lnet/minecraft/class_1333;method_20251()Fnamed getTargetYawLnet/minecraft/entity/ai/control/LookControl;getTargetYaw()F
-
changeAngle
protected float changeAngle(float from, float to, float max)- Mappings:
Namespace Name Mixin selector official aLayr;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 bLayr;b(Latf;)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
-