Class MoveControl

java.lang.Object
net.minecraft.entity.ai.control.MoveControl
Direct Known Subclasses:
DolphinEntity.DolphinMoveControl, DrownedEntity.DrownedMoveControl, FishEntity.FishMoveControl, FlightMoveControl, FoxEntity.FoxMoveControl, GhastEntity.GhastMoveControl, GuardianEntity.GuardianMoveControl, PandaEntity.PandaMoveControl, PhantomEntity.PhantomMoveControl, RabbitEntity.RabbitMoveControl, SlimeEntity.SlimeMoveControl, TurtleEntity.TurtleMoveControl, VexEntity.VexMoveControl

public class MoveControl
extends Object
  • Field Details

    • entity

      protected final MobEntity entity
    • targetX

      protected double targetX
    • targetY

      protected double targetY
    • targetZ

      protected double targetZ
    • speed

      protected double speed
    • forwardMovement

      protected float forwardMovement
    • sidewaysMovement

      protected float sidewaysMovement
    • state

      protected MoveControl.State state
  • Constructor Details

    • MoveControl

      public MoveControl​(MobEntity entity)
  • Method Details

    • isMoving

      public boolean isMoving()
    • getSpeed

      public double getSpeed()
    • moveTo

      public void moveTo​(double x, double y, double z, double speed)
    • strafeTo

      public void strafeTo​(float forward, float sideways)
    • tick

      public void tick()
    • method_25946

      private boolean method_25946​(float float2, float float3)
    • changeAngle

      protected float changeAngle​(float from, float to, float max)
    • getTargetX

      public double getTargetX()
    • getTargetY

      public double getTargetY()
    • getTargetZ

      public double getTargetZ()