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

public class LookControl extends Object implements Control
Mappings:
Namespace Name
official ayr
intermediary net/minecraft/class_1333
named net/minecraft/entity/ai/control/LookControl
  • Field Details

    • entity

      protected final MobEntity entity
      Mappings:
      Namespace Name Mixin selector
      official a Layr;a:Latv;
      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 Layr;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 Layr;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 Layr;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 Layr;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 Layr;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 Layr;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

      public LookControl(MobEntity entity)
      Mappings:
      Namespace Name Mixin selector
      official <init> Layr;<init>(Latv;)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

      public void lookAt(Vec3d direction)
      Mappings:
      Namespace Name Mixin selector
      official a Layr;a(Ldna;)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

      public void lookAt(Entity entity)
      Mappings:
      Namespace Name Mixin selector
      official a Layr;a(Latf;)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

      public void lookAt(Entity entity, float yawSpeed, float pitchSpeed)
      Mappings:
      Namespace Name Mixin selector
      official a Layr;a(Latf;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 Layr;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 Layr;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 Layr;a()V
      intermediary method_6231 Lnet/minecraft/class_1333;method_6231()V
      named tick Lnet/minecraft/entity/ai/control/LookControl;tick()V
    • method_36980

      protected void method_36980()
      Mappings:
      Namespace Name Mixin selector
      official b Layr;b()V
      intermediary method_36980 Lnet/minecraft/class_1333;method_36980()V
      named method_36980 Lnet/minecraft/entity/ai/control/LookControl;method_36980()V
    • shouldStayHorizontal

      protected boolean shouldStayHorizontal()
      Mappings:
      Namespace Name Mixin selector
      official c Layr;c()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 d Layr;d()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 e Layr;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 Layr;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 Layr;g()D
      intermediary method_6228 Lnet/minecraft/class_1333;method_6228()D
      named getLookZ Lnet/minecraft/entity/ai/control/LookControl;getLookZ()D
    • getTargetPitch

      protected Optional<Float> getTargetPitch()
      Mappings:
      Namespace Name Mixin selector
      official h Layr;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

      protected Optional<Float> getTargetYaw()
      Mappings:
      Namespace Name Mixin selector
      official i Layr;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)
      Mappings:
      Namespace Name Mixin selector
      official a Layr;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

      private static double getLookingHeightFor(Entity entity)
      Mappings:
      Namespace Name Mixin selector
      official b Layr;b(Latf;)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