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

public class YawAdjustingLookControl extends LookControl
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
official bcg
intermediary net/minecraft/class_1332
named net/minecraft/entity/ai/control/YawAdjustingLookControl
  • Field Details

    • ADDED_PITCH

      private static final int ADDED_PITCH
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official i Lbcg;i:I
      intermediary field_30200 Lnet/minecraft/class_1332;field_30200:I
      named ADDED_PITCH Lnet/minecraft/entity/ai/control/YawAdjustingLookControl;ADDED_PITCH:I
    • ADDED_YAW

      private static final int ADDED_YAW
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official j Lbcg;j:I
      intermediary field_30201 Lnet/minecraft/class_1332;field_30201:I
      named ADDED_YAW Lnet/minecraft/entity/ai/control/YawAdjustingLookControl;ADDED_YAW:I
    • yawAdjustThreshold

      private final int yawAdjustThreshold
      Mappings:
      Namespace Name Mixin selector
      official h Lbcg;h:I
      intermediary field_6357 Lnet/minecraft/class_1332;field_6357:I
      named yawAdjustThreshold Lnet/minecraft/entity/ai/control/YawAdjustingLookControl;yawAdjustThreshold:I
  • Constructor Details

    • YawAdjustingLookControl

      public YawAdjustingLookControl(MobEntity entity, int yawAdjustThreshold)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbcg;<init>(Laxj;I)V
      intermediary <init> Lnet/minecraft/class_1332;<init>(Lnet/minecraft/class_1308;I)V
      named <init> Lnet/minecraft/entity/ai/control/YawAdjustingLookControl;<init>(Lnet/minecraft/entity/mob/MobEntity;I)V
  • Method Details

    • tick

      public void tick()
      Overrides:
      tick in class LookControl
      Mappings:
      Namespace Name Mixin selector
      official a Lbce;a()V
      intermediary method_6231 Lnet/minecraft/class_1333;method_6231()V
      named tick Lnet/minecraft/entity/ai/control/LookControl;tick()V