Class MoveControl

java.lang.Object
net.minecraft.entity.ai.control.MoveControl
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
Mappings:
Namespace Name
official awb
intermediary net/minecraft/class_1335
named net/minecraft/entity/ai/control/MoveControl
  • Field Details

    • entity

      protected final MobEntity entity
      Mappings:
      Namespace Name Mixin selector
      official a Lawb;a:Larj;
      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 b Lawb;b: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 c Lawb;c: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 d Lawb;d: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 e Lawb;e: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 f Lawb;f: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 g Lawb;g: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 h Lawb;h:Lawb$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> Lawb;<init>(Larj;)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 Lawb;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 Lawb;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 Lawb;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 Lawb;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 Lawb;a()V
      intermediary method_6240 Lnet/minecraft/class_1335;method_6240()V
      named tick Lnet/minecraft/entity/ai/control/MoveControl;tick()V
    • method_25946

      private boolean method_25946​(float float2, float float3)
      Mappings:
      Namespace Name Mixin selector
      official b Lawb;b(FF)Z
      intermediary method_25946 Lnet/minecraft/class_1335;method_25946(FF)Z
      named method_25946 Lnet/minecraft/entity/ai/control/MoveControl;method_25946(FF)Z
    • changeAngle

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

      public double getTargetX()
      Mappings:
      Namespace Name Mixin selector
      official d Lawb;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 Lawb;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 Lawb;f()D
      intermediary method_6237 Lnet/minecraft/class_1335;method_6237()D
      named getTargetZ Lnet/minecraft/entity/ai/control/MoveControl;getTargetZ()D