Class LookController

java.lang.Object
net.minecraft.entity.ai.controller.LookController
Direct Known Subclasses:
BeeEntity.BeeLookController, DolphinLookController, FoxEntity.LookHelperController, PhantomEntity.LookHelperController

public class LookController extends Object
  • Field Details

    • mob

      protected final MobEntity mob
    • yMaxRotSpeed

      protected float yMaxRotSpeed
    • xMaxRotAngle

      protected float xMaxRotAngle
    • hasWanted

      protected boolean hasWanted
    • wantedX

      protected double wantedX
    • wantedY

      protected double wantedY
    • wantedZ

      protected double wantedZ
  • Constructor Details

    • LookController

      public LookController(MobEntity p_i1613_1_)
  • Method Details

    • setLookAt

      public void setLookAt(Vector3d p_220674_1_)
    • setLookAt

      public void setLookAt(Entity p_75651_1_, float p_75651_2_, float p_75651_3_)
    • setLookAt

      public void setLookAt(double p_220679_1_, double p_220679_3_, double p_220679_5_)
    • setLookAt

      public void setLookAt(double p_75650_1_, double p_75650_3_, double p_75650_5_, float p_75650_7_, float p_75650_8_)
    • tick

      public void tick()
    • resetXRotOnTick

      protected boolean resetXRotOnTick()
    • isHasWanted

      public boolean isHasWanted()
    • getWantedX

      public double getWantedX()
    • getWantedY

      public double getWantedY()
    • getWantedZ

      public double getWantedZ()
    • getXRotD

      protected float getXRotD()
    • getYRotD

      protected float getYRotD()
    • rotateTowards

      protected float rotateTowards(float p_220675_1_, float p_220675_2_, float p_220675_3_)
    • getWantedY

      private static double getWantedY(Entity p_220676_0_)