Class MoveControl

java.lang.Object
net.minecraft.entity.ai.control.MoveControl
All Implemented Interfaces:
Control
Direct Known Subclasses:
AquaticMoveControl, CamelEntity.CamelMoveControl, 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 implements Control
Mappings:
Namespace Name
named net/minecraft/entity/ai/control/MoveControl
intermediary net/minecraft/class_1335
official bzd
  • Field Details

    • field_30197

      public static final float field_30197
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_30197 Lnet/minecraft/entity/ai/control/MoveControl;field_30197:F
      intermediary field_30197 Lnet/minecraft/class_1335;field_30197:F
      official a Lbzd;a:F
    • REACHED_DESTINATION_DISTANCE_SQUARED

      public static final float REACHED_DESTINATION_DISTANCE_SQUARED
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named REACHED_DESTINATION_DISTANCE_SQUARED Lnet/minecraft/entity/ai/control/MoveControl;REACHED_DESTINATION_DISTANCE_SQUARED:F
      intermediary field_30198 Lnet/minecraft/class_1335;field_30198:F
      official b Lbzd;b:F
    • field_30199

      protected static final int field_30199
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_30199 Lnet/minecraft/entity/ai/control/MoveControl;field_30199:I
      intermediary field_30199 Lnet/minecraft/class_1335;field_30199:I
      official c Lbzd;c:I
    • entity

      protected final MobEntity entity
      Mappings:
      Namespace Name Mixin selector
      named entity Lnet/minecraft/entity/ai/control/MoveControl;entity:Lnet/minecraft/entity/mob/MobEntity;
      intermediary field_6371 Lnet/minecraft/class_1335;field_6371:Lnet/minecraft/class_1308;
      official d Lbzd;d:Lbte;
    • targetX

      protected double targetX
      Mappings:
      Namespace Name Mixin selector
      named targetX Lnet/minecraft/entity/ai/control/MoveControl;targetX:D
      intermediary field_6370 Lnet/minecraft/class_1335;field_6370:D
      official e Lbzd;e:D
    • targetY

      protected double targetY
      Mappings:
      Namespace Name Mixin selector
      named targetY Lnet/minecraft/entity/ai/control/MoveControl;targetY:D
      intermediary field_6369 Lnet/minecraft/class_1335;field_6369:D
      official f Lbzd;f:D
    • targetZ

      protected double targetZ
      Mappings:
      Namespace Name Mixin selector
      named targetZ Lnet/minecraft/entity/ai/control/MoveControl;targetZ:D
      intermediary field_6367 Lnet/minecraft/class_1335;field_6367:D
      official g Lbzd;g:D
    • speed

      protected double speed
      Mappings:
      Namespace Name Mixin selector
      named speed Lnet/minecraft/entity/ai/control/MoveControl;speed:D
      intermediary field_6372 Lnet/minecraft/class_1335;field_6372:D
      official h Lbzd;h:D
    • forwardMovement

      protected float forwardMovement
      Mappings:
      Namespace Name Mixin selector
      named forwardMovement Lnet/minecraft/entity/ai/control/MoveControl;forwardMovement:F
      intermediary field_6368 Lnet/minecraft/class_1335;field_6368:F
      official i Lbzd;i:F
    • sidewaysMovement

      protected float sidewaysMovement
      Mappings:
      Namespace Name Mixin selector
      named sidewaysMovement Lnet/minecraft/entity/ai/control/MoveControl;sidewaysMovement:F
      intermediary field_6373 Lnet/minecraft/class_1335;field_6373:F
      official j Lbzd;j:F
    • state

      protected MoveControl.State state
      Mappings:
      Namespace Name Mixin selector
      named state Lnet/minecraft/entity/ai/control/MoveControl;state:Lnet/minecraft/entity/ai/control/MoveControl$State;
      intermediary field_6374 Lnet/minecraft/class_1335;field_6374:Lnet/minecraft/class_1335$class_1336;
      official k Lbzd;k:Lbzd$a;
  • Constructor Details

    • MoveControl

      public MoveControl(MobEntity entity)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/entity/ai/control/MoveControl;<init>(Lnet/minecraft/entity/mob/MobEntity;)V
      intermediary <init> Lnet/minecraft/class_1335;<init>(Lnet/minecraft/class_1308;)V
      official <init> Lbzd;<init>(Lbte;)V
  • Method Details

    • isMoving

      public boolean isMoving()
      Mappings:
      Namespace Name Mixin selector
      named isMoving Lnet/minecraft/entity/ai/control/MoveControl;isMoving()Z
      intermediary method_6241 Lnet/minecraft/class_1335;method_6241()Z
      official b Lbzd;b()Z
    • getSpeed

      public double getSpeed()
      Mappings:
      Namespace Name Mixin selector
      named getSpeed Lnet/minecraft/entity/ai/control/MoveControl;getSpeed()D
      intermediary method_6242 Lnet/minecraft/class_1335;method_6242()D
      official c Lbzd;c()D
    • moveTo

      public void moveTo(double x, double y, double z, double speed)
      Mappings:
      Namespace Name Mixin selector
      named moveTo Lnet/minecraft/entity/ai/control/MoveControl;moveTo(DDDD)V
      intermediary method_6239 Lnet/minecraft/class_1335;method_6239(DDDD)V
      official a Lbzd;a(DDDD)V
    • strafeTo

      public void strafeTo(float forward, float sideways)
      Mappings:
      Namespace Name Mixin selector
      named strafeTo Lnet/minecraft/entity/ai/control/MoveControl;strafeTo(FF)V
      intermediary method_6243 Lnet/minecraft/class_1335;method_6243(FF)V
      official a Lbzd;a(FF)V
    • tick

      public void tick()
      Mappings:
      Namespace Name Mixin selector
      named tick Lnet/minecraft/entity/ai/control/MoveControl;tick()V
      intermediary method_6240 Lnet/minecraft/class_1335;method_6240()V
      official a Lbzd;a()V
    • isPosWalkable

      private boolean isPosWalkable(float x, float z)
      Mappings:
      Namespace Name Mixin selector
      named isPosWalkable Lnet/minecraft/entity/ai/control/MoveControl;isPosWalkable(FF)Z
      intermediary method_25946 Lnet/minecraft/class_1335;method_25946(FF)Z
      official b Lbzd;b(FF)Z
    • wrapDegrees

      protected float wrapDegrees(float from, float to, float max)
      Mappings:
      Namespace Name Mixin selector
      named wrapDegrees Lnet/minecraft/entity/ai/control/MoveControl;wrapDegrees(FFF)F
      intermediary method_6238 Lnet/minecraft/class_1335;method_6238(FFF)F
      official a Lbzd;a(FFF)F
    • getTargetX

      public double getTargetX()
      Mappings:
      Namespace Name Mixin selector
      named getTargetX Lnet/minecraft/entity/ai/control/MoveControl;getTargetX()D
      intermediary method_6236 Lnet/minecraft/class_1335;method_6236()D
      official d Lbzd;d()D
    • getTargetY

      public double getTargetY()
      Mappings:
      Namespace Name Mixin selector
      named getTargetY Lnet/minecraft/entity/ai/control/MoveControl;getTargetY()D
      intermediary method_6235 Lnet/minecraft/class_1335;method_6235()D
      official e Lbzd;e()D
    • getTargetZ

      public double getTargetZ()
      Mappings:
      Namespace Name Mixin selector
      named getTargetZ Lnet/minecraft/entity/ai/control/MoveControl;getTargetZ()D
      intermediary method_6237 Lnet/minecraft/class_1335;method_6237()D
      official f Lbzd;f()D