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 bgu
intermediary net/minecraft/class_1333
named net/minecraft/entity/ai/control/LookControl
-
Field Summary
Modifier and TypeFieldDescriptionprotected final MobEntity
protected int
protected float
protected float
protected double
protected double
protected double
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected float
changeAngle
(float from, float to, float max) Changes the angle fromfrom
toto
, or bymax
degrees ifto
is too big a change.protected void
private static double
getLookingHeightFor
(Entity entity) double
getLookX()
double
getLookY()
double
getLookZ()
void
lookAt
(double x, double y, double z) void
lookAt
(double x, double y, double z, float maxYawChange, float maxPitchChange) void
void
void
boolean
protected boolean
void
tick()
-
Field Details
-
entity
- Mappings:
Namespace Name Mixin selector official a
Lbgu;a:Lbbh;
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;
-
maxYawChange
protected float maxYawChange- Mappings:
Namespace Name Mixin selector official b
Lbgu;b:F
intermediary field_6359
Lnet/minecraft/class_1333;field_6359:F
named maxYawChange
Lnet/minecraft/entity/ai/control/LookControl;maxYawChange:F
-
maxPitchChange
protected float maxPitchChange- Mappings:
Namespace Name Mixin selector official c
Lbgu;c:F
intermediary field_6358
Lnet/minecraft/class_1333;field_6358:F
named maxPitchChange
Lnet/minecraft/entity/ai/control/LookControl;maxPitchChange:F
-
field_35103
protected int field_35103- Mappings:
Namespace Name Mixin selector official d
Lbgu;d:I
intermediary field_35103
Lnet/minecraft/class_1333;field_35103:I
named field_35103
Lnet/minecraft/entity/ai/control/LookControl;field_35103:I
-
x
protected double x- Mappings:
Namespace Name Mixin selector official e
Lbgu;e:D
intermediary field_6364
Lnet/minecraft/class_1333;field_6364:D
named x
Lnet/minecraft/entity/ai/control/LookControl;x:D
-
y
protected double y- Mappings:
Namespace Name Mixin selector official f
Lbgu;f:D
intermediary field_6363
Lnet/minecraft/class_1333;field_6363:D
named y
Lnet/minecraft/entity/ai/control/LookControl;y:D
-
z
protected double z- Mappings:
Namespace Name Mixin selector official g
Lbgu;g:D
intermediary field_6362
Lnet/minecraft/class_1333;field_6362:D
named z
Lnet/minecraft/entity/ai/control/LookControl;z:D
-
-
Constructor Details
-
LookControl
- Mappings:
Namespace Name Mixin selector official <init>
Lbgu;<init>(Lbbh;)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
Lbgu;a(Ldvt;)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
Lbgu;a(Lbaq;)V
intermediary method_35111
Lnet/minecraft/class_1333;method_35111(Lnet/minecraft/class_1297;)V
named lookAt
Lnet/minecraft/entity/ai/control/LookControl;lookAt(Lnet/minecraft/entity/Entity;)V
-
lookAt
- Mappings:
Namespace Name Mixin selector official a
Lbgu;a(Lbaq;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
Lbgu;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 maxYawChange, float maxPitchChange) - Mappings:
Namespace Name Mixin selector official a
Lbgu;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
Lbgu;a()V
intermediary method_6231
Lnet/minecraft/class_1333;method_6231()V
named tick
Lnet/minecraft/entity/ai/control/LookControl;tick()V
-
clampHeadYaw
protected void clampHeadYaw()- Mappings:
Namespace Name Mixin selector official b
Lbgu;b()V
intermediary method_36980
Lnet/minecraft/class_1333;method_36980()V
named clampHeadYaw
Lnet/minecraft/entity/ai/control/LookControl;clampHeadYaw()V
-
shouldStayHorizontal
protected boolean shouldStayHorizontal()- Mappings:
Namespace Name Mixin selector official c
Lbgu;c()Z
intermediary method_20433
Lnet/minecraft/class_1333;method_20433()Z
named shouldStayHorizontal
Lnet/minecraft/entity/ai/control/LookControl;shouldStayHorizontal()Z
-
method_38970
public boolean method_38970()- Mappings:
Namespace Name Mixin selector official d
Lbgu;d()Z
intermediary method_38970
Lnet/minecraft/class_1333;method_38970()Z
named method_38970
Lnet/minecraft/entity/ai/control/LookControl;method_38970()Z
-
getLookX
public double getLookX()- Mappings:
Namespace Name Mixin selector official e
Lbgu;e()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 f
Lbgu;f()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 g
Lbgu;g()D
intermediary method_6228
Lnet/minecraft/class_1333;method_6228()D
named getLookZ
Lnet/minecraft/entity/ai/control/LookControl;getLookZ()D
-
getTargetPitch
- Mappings:
Namespace Name Mixin selector official h
Lbgu;h()Ljava/util/Optional;
intermediary method_20250
Lnet/minecraft/class_1333;method_20250()Ljava/util/Optional;
named getTargetPitch
Lnet/minecraft/entity/ai/control/LookControl;getTargetPitch()Ljava/util/Optional;
-
getTargetYaw
- Mappings:
Namespace Name Mixin selector official i
Lbgu;i()Ljava/util/Optional;
intermediary method_20251
Lnet/minecraft/class_1333;method_20251()Ljava/util/Optional;
named getTargetYaw
Lnet/minecraft/entity/ai/control/LookControl;getTargetYaw()Ljava/util/Optional;
-
changeAngle
protected float changeAngle(float from, float to, float max) Changes the angle fromfrom
toto
, or bymax
degrees ifto
is too big a change.This is the same as
MobEntity.changeAngle(float, float, float)
.- Mappings:
Namespace Name Mixin selector official a
Lbgu;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
Lbgu;b(Lbaq;)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
-