Package net.minecraft.entity.ai.control
Class YawAdjustingLookControl
java.lang.Object
net.minecraft.entity.ai.control.LookControl
net.minecraft.entity.ai.control.YawAdjustingLookControl
- All Implemented Interfaces:
Control
- Direct Known Subclasses:
AxolotlEntity.AxolotlLookControl
The yaw adjusting look control adjusts the entity's body yaw to be close to the
head yaw. In vanilla, this is used by entities that cannot rotate their heads
easily, such as axolotl and dolphin.
- Mappings:
Namespace Name named net/minecraft/entity/ai/control/YawAdjustingLookControlintermediary net/minecraft/class_1332official cef
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intprivate static final intprivate final intFields inherited from class net.minecraft.entity.ai.control.LookControl
entity, lookAtTimer, maxPitchChange, maxYawChange, x, y, z -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class net.minecraft.entity.ai.control.LookControl
clampHeadYaw, getLookX, getLookY, getLookZ, getTargetPitch, getTargetYaw, isLookingAtSpecificPosition, lookAt, lookAt, lookAt, lookAt, lookAt, shouldStayHorizontalMethods 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
-
ADDED_PITCH
private static final int ADDED_PITCH- See Also:
- Mappings:
Namespace Name Mixin selector named ADDED_PITCHLnet/minecraft/entity/ai/control/YawAdjustingLookControl;ADDED_PITCH:Iintermediary field_30200Lnet/minecraft/class_1332;field_30200:Iofficial iLcef;i:I
-
ADDED_YAW
private static final int ADDED_YAW- See Also:
- Mappings:
Namespace Name Mixin selector named ADDED_YAWLnet/minecraft/entity/ai/control/YawAdjustingLookControl;ADDED_YAW:Iintermediary field_30201Lnet/minecraft/class_1332;field_30201:Iofficial jLcef;j:I
-
yawAdjustThreshold
private final int yawAdjustThreshold- Mappings:
Namespace Name Mixin selector named yawAdjustThresholdLnet/minecraft/entity/ai/control/YawAdjustingLookControl;yawAdjustThreshold:Iintermediary field_6357Lnet/minecraft/class_1332;field_6357:Iofficial hLcef;h:I
-
-
Constructor Details
-
YawAdjustingLookControl
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/entity/ai/control/YawAdjustingLookControl;<init>(Lnet/minecraft/entity/mob/MobEntity;I)Vintermediary <init>Lnet/minecraft/class_1332;<init>(Lnet/minecraft/class_1308;I)Vofficial <init>Lcef;<init>(Lbyh;I)V
-
-
Method Details
-
tick
public void tick()- Overrides:
tickin classLookControl- Mappings:
Namespace Name Mixin selector named tickLnet/minecraft/entity/ai/control/LookControl;tick()Vintermediary method_6231Lnet/minecraft/class_1333;method_6231()Vofficial aLced;a()V
-