Class MovementController

java.lang.Object
net.minecraft.entity.ai.controller.MovementController
Direct Known Subclasses:
AbstractFishEntity.MoveHelperController, DolphinEntity.MoveHelperController, DrownedEntity.MoveHelperController, FlyingMovementController, FoxEntity.MoveHelperController, GhastEntity.MoveHelperController, GuardianEntity.MoveHelperController, PandaEntity.MoveHelperController, PhantomEntity.MoveHelperController, RabbitEntity.MoveHelperController, SlimeEntity.MoveHelperController, TurtleEntity.MoveHelperController, VexEntity.MoveHelperController

public class MovementController extends Object
  • Field Details

    • mob

      protected final MobEntity 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 MovementController.Action operation
  • Constructor Details

    • MovementController

      public MovementController(MobEntity p_i1614_1_)
  • Method Details

    • hasWanted

      public boolean hasWanted()
    • getSpeedModifier

      public double getSpeedModifier()
    • setWantedPosition

      public void setWantedPosition(double p_75642_1_, double p_75642_3_, double p_75642_5_, double p_75642_7_)
    • strafe

      public void strafe(float p_188488_1_, float p_188488_2_)
    • tick

      public void tick()
    • isWalkable

      private boolean isWalkable(float p_234024_1_, float p_234024_2_)
    • rotlerp

      protected float rotlerp(float p_75639_1_, float p_75639_2_, float p_75639_3_)
    • getWantedX

      public double getWantedX()
    • getWantedY

      public double getWantedY()
    • getWantedZ

      public double getWantedZ()