Class MoveControl

java.lang.Object
net.minecraft.world.entity.ai.control.MoveControl
All Implemented Interfaces:
Control
Direct Known Subclasses:
AbstractFish.FishMoveControl, Drowned.DrownedMoveControl, FlyingMoveControl, Fox.FoxMoveControl, Ghast.GhastMoveControl, Guardian.GuardianMoveControl, Panda.PandaMoveControl, Phantom.PhantomMoveControl, Rabbit.RabbitMoveControl, Slime.SlimeMoveControl, SmoothSwimmingMoveControl, Turtle.TurtleMoveControl, Vex.VexMoveControl

public class MoveControl extends Object implements Control
  • Field Details

    • MIN_SPEED

      public static final float MIN_SPEED
      See Also:
    • MIN_SPEED_SQR

      public static final float MIN_SPEED_SQR
      See Also:
    • MAX_TURN

      protected static final int MAX_TURN
      See Also:
    • mob

      protected final Mob mob
    • wantedX

      protected double wantedX
    • wantedY

      protected double wantedY
    • wantedZ

      protected double wantedZ
    • speedModifier

      protected double speedModifier
    • strafeForwards

      protected float strafeForwards
    • strafeRight

      protected float strafeRight
    • operation

      protected MoveControl.Operation operation
  • Constructor Details

    • MoveControl

      public MoveControl(Mob p_24983_)
  • Method Details

    • hasWanted

      public boolean hasWanted()
    • getSpeedModifier

      public double getSpeedModifier()
    • setWantedPosition

      public void setWantedPosition(double p_24984_, double p_24985_, double p_24986_, double p_24987_)
    • strafe

      public void strafe(float p_24989_, float p_24990_)
    • tick

      public void tick()
    • isWalkable

      private boolean isWalkable(float p_24997_, float p_24998_)
    • rotlerp

      protected float rotlerp(float p_24992_, float p_24993_, float p_24994_)
    • getWantedX

      public double getWantedX()
    • getWantedY

      public double getWantedY()
    • getWantedZ

      public double getWantedZ()