Package net.minecraft.entity.ai.control
Class LookControl
java.lang.Object
net.minecraft.entity.ai.control.LookControl
- Direct Known Subclasses:
AquaticLookControl
,BeeEntity.BeeLookControl
,FoxEntity.FoxLookControl
,PhantomEntity.PhantomLookControl
public class LookControl extends Object
- Mappings:
Namespace Name official awa
intermediary net/minecraft/class_1333
named net/minecraft/entity/ai/control/LookControl
-
Field Summary
-
Constructor Summary
Constructors Constructor Description LookControl(MobEntity entity)
-
Method Summary
Modifier and Type Method Description protected float
changeAngle(float from, float to, float max)
private static double
getLookingHeightFor(Entity entity)
double
getLookX()
double
getLookY()
double
getLookZ()
protected float
getTargetPitch()
protected float
getTargetYaw()
boolean
isActive()
void
lookAt(double x, double y, double z)
void
lookAt(double x, double y, double z, float yawSpeed, float pitchSpeed)
void
lookAt(Entity entity, float yawSpeed, float pitchSpeed)
void
lookAt(Vec3d direction)
protected boolean
shouldStayHorizontal()
void
tick()
-
Field Details
-
entity
- Mappings:
Namespace Name Mixin selector official a
Lawa;a:Larj;
intermediary field_6361
Lnet/minecraft/class_1333;field_6361:Lnet/minecraft/class_1308;
named entity
Lnet/minecraft/entity/ai/control/LookControl;entity:Lnet/minecraft/entity/mob/MobEntity;
-
yawSpeed
protected float yawSpeed- Mappings:
Namespace Name Mixin selector official b
Lawa;b:F
intermediary field_6359
Lnet/minecraft/class_1333;field_6359:F
named yawSpeed
Lnet/minecraft/entity/ai/control/LookControl;yawSpeed:F
-
pitchSpeed
protected float pitchSpeed- Mappings:
Namespace Name Mixin selector official c
Lawa;c:F
intermediary field_6358
Lnet/minecraft/class_1333;field_6358:F
named pitchSpeed
Lnet/minecraft/entity/ai/control/LookControl;pitchSpeed:F
-
active
protected boolean active- Mappings:
Namespace Name Mixin selector official d
Lawa;d:Z
intermediary field_6360
Lnet/minecraft/class_1333;field_6360:Z
named active
Lnet/minecraft/entity/ai/control/LookControl;active:Z
-
lookX
protected double lookX- Mappings:
Namespace Name Mixin selector official e
Lawa;e:D
intermediary field_6364
Lnet/minecraft/class_1333;field_6364:D
named lookX
Lnet/minecraft/entity/ai/control/LookControl;lookX:D
-
lookY
protected double lookY- Mappings:
Namespace Name Mixin selector official f
Lawa;f:D
intermediary field_6363
Lnet/minecraft/class_1333;field_6363:D
named lookY
Lnet/minecraft/entity/ai/control/LookControl;lookY:D
-
lookZ
protected double lookZ- Mappings:
Namespace Name Mixin selector official g
Lawa;g:D
intermediary field_6362
Lnet/minecraft/class_1333;field_6362:D
named lookZ
Lnet/minecraft/entity/ai/control/LookControl;lookZ:D
-
-
Constructor Details
-
LookControl
- Mappings:
Namespace Name Mixin selector official <init>
Lawa;<init>(Larj;)V
intermediary <init>
Lnet/minecraft/class_1333;<init>(Lnet/minecraft/class_1308;)V
named <init>
Lnet/minecraft/entity/ai/control/LookControl;<init>(Lnet/minecraft/entity/mob/MobEntity;)V
-
-
Method Details
-
lookAt
- Mappings:
Namespace Name Mixin selector official a
Lawa;a(Ldiu;)V
intermediary method_19615
Lnet/minecraft/class_1333;method_19615(Lnet/minecraft/class_243;)V
named lookAt
Lnet/minecraft/entity/ai/control/LookControl;lookAt(Lnet/minecraft/util/math/Vec3d;)V
-
lookAt
- Mappings:
Namespace Name Mixin selector official a
Lawa;a(Laqv;FF)V
intermediary method_6226
Lnet/minecraft/class_1333;method_6226(Lnet/minecraft/class_1297;FF)V
named lookAt
Lnet/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 a
Lawa;a(DDD)V
intermediary method_20248
Lnet/minecraft/class_1333;method_20248(DDD)V
named lookAt
Lnet/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 a
Lawa;a(DDDFF)V
intermediary method_6230
Lnet/minecraft/class_1333;method_6230(DDDFF)V
named lookAt
Lnet/minecraft/entity/ai/control/LookControl;lookAt(DDDFF)V
-
tick
public void tick()- Mappings:
Namespace Name Mixin selector official a
Lawa;a()V
intermediary method_6231
Lnet/minecraft/class_1333;method_6231()V
named tick
Lnet/minecraft/entity/ai/control/LookControl;tick()V
-
shouldStayHorizontal
protected boolean shouldStayHorizontal()- Mappings:
Namespace Name Mixin selector official b
Lawa;b()Z
intermediary method_20433
Lnet/minecraft/class_1333;method_20433()Z
named shouldStayHorizontal
Lnet/minecraft/entity/ai/control/LookControl;shouldStayHorizontal()Z
-
isActive
public boolean isActive()- Mappings:
Namespace Name Mixin selector official c
Lawa;c()Z
intermediary method_6232
Lnet/minecraft/class_1333;method_6232()Z
named isActive
Lnet/minecraft/entity/ai/control/LookControl;isActive()Z
-
getLookX
public double getLookX()- Mappings:
Namespace Name Mixin selector official d
Lawa;d()D
intermediary method_6225
Lnet/minecraft/class_1333;method_6225()D
named getLookX
Lnet/minecraft/entity/ai/control/LookControl;getLookX()D
-
getLookY
public double getLookY()- Mappings:
Namespace Name Mixin selector official e
Lawa;e()D
intermediary method_6227
Lnet/minecraft/class_1333;method_6227()D
named getLookY
Lnet/minecraft/entity/ai/control/LookControl;getLookY()D
-
getLookZ
public double getLookZ()- Mappings:
Namespace Name Mixin selector official f
Lawa;f()D
intermediary method_6228
Lnet/minecraft/class_1333;method_6228()D
named getLookZ
Lnet/minecraft/entity/ai/control/LookControl;getLookZ()D
-
getTargetPitch
protected float getTargetPitch()- Mappings:
Namespace Name Mixin selector official g
Lawa;g()F
intermediary method_20250
Lnet/minecraft/class_1333;method_20250()F
named getTargetPitch
Lnet/minecraft/entity/ai/control/LookControl;getTargetPitch()F
-
getTargetYaw
protected float getTargetYaw()- Mappings:
Namespace Name Mixin selector official h
Lawa;h()F
intermediary method_20251
Lnet/minecraft/class_1333;method_20251()F
named getTargetYaw
Lnet/minecraft/entity/ai/control/LookControl;getTargetYaw()F
-
changeAngle
protected float changeAngle(float from, float to, float max)- Mappings:
Namespace Name Mixin selector official a
Lawa;a(FFF)F
intermediary method_6229
Lnet/minecraft/class_1333;method_6229(FFF)F
named changeAngle
Lnet/minecraft/entity/ai/control/LookControl;changeAngle(FFF)F
-
getLookingHeightFor
- Mappings:
Namespace Name Mixin selector official b
Lawa;b(Laqv;)D
intermediary method_20249
Lnet/minecraft/class_1333;method_20249(Lnet/minecraft/class_1297;)D
named getLookingHeightFor
Lnet/minecraft/entity/ai/control/LookControl;getLookingHeightFor(Lnet/minecraft/entity/Entity;)D
-