Class MoveControl

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

    • field_30197

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

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

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

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

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

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

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

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

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

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

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

    • MoveControl

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

    • isMoving

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

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

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

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

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

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

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

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

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

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