Class MoveToTargetTask

java.lang.Object
net.minecraft.entity.ai.brain.task.MultiTickTask<MobEntity>
net.minecraft.entity.ai.brain.task.MoveToTargetTask
All Implemented Interfaces:
Task<MobEntity>
Direct Known Subclasses:
BreezeBrain.SlideAroundTask

public class MoveToTargetTask extends MultiTickTask<MobEntity>
Mappings:
Namespace Name
named net/minecraft/entity/ai/brain/task/MoveToTargetTask
intermediary net/minecraft/class_4112
official bzi
  • Field Details

    • MAX_UPDATE_COUNTDOWN

      private static final int MAX_UPDATE_COUNTDOWN
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named MAX_UPDATE_COUNTDOWN Lnet/minecraft/entity/ai/brain/task/MoveToTargetTask;MAX_UPDATE_COUNTDOWN:I
      intermediary field_30150 Lnet/minecraft/class_4112;field_30150:I
      official c Lbzi;c:I
    • pathUpdateCountdownTicks

      private int pathUpdateCountdownTicks
      Mappings:
      Namespace Name Mixin selector
      named pathUpdateCountdownTicks Lnet/minecraft/entity/ai/brain/task/MoveToTargetTask;pathUpdateCountdownTicks:I
      intermediary field_18964 Lnet/minecraft/class_4112;field_18964:I
      official d Lbzi;d:I
    • path

      @Nullable private @Nullable Path path
      Mappings:
      Namespace Name Mixin selector
      named path Lnet/minecraft/entity/ai/brain/task/MoveToTargetTask;path:Lnet/minecraft/entity/ai/pathing/Path;
      intermediary field_18369 Lnet/minecraft/class_4112;field_18369:Lnet/minecraft/class_11;
      official e Lbzi;e:Leuk;
    • lookTargetPos

      @Nullable private @Nullable BlockPos lookTargetPos
      Mappings:
      Namespace Name Mixin selector
      named lookTargetPos Lnet/minecraft/entity/ai/brain/task/MoveToTargetTask;lookTargetPos:Lnet/minecraft/util/math/BlockPos;
      intermediary field_18370 Lnet/minecraft/class_4112;field_18370:Lnet/minecraft/class_2338;
      official f Lbzi;f:Ljh;
    • speed

      private float speed
      Mappings:
      Namespace Name Mixin selector
      named speed Lnet/minecraft/entity/ai/brain/task/MoveToTargetTask;speed:F
      intermediary field_18371 Lnet/minecraft/class_4112;field_18371:F
      official g Lbzi;g:F
  • Constructor Details

    • MoveToTargetTask

      public MoveToTargetTask()
    • MoveToTargetTask

      public MoveToTargetTask(int minRunTime, int maxRunTime)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/entity/ai/brain/task/MoveToTargetTask;<init>(II)V
      intermediary <init> Lnet/minecraft/class_4112;<init>(II)V
      official <init> Lbzi;<init>(II)V
  • Method Details

    • shouldRun

      protected boolean shouldRun(ServerWorld serverWorld, MobEntity mobEntity)
      Overrides:
      shouldRun in class MultiTickTask<MobEntity>
      Mappings:
      Namespace Name Mixin selector
      named shouldRun Lnet/minecraft/entity/ai/brain/task/MoveToTargetTask;shouldRun(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/MobEntity;)Z
      intermediary method_18978 Lnet/minecraft/class_4112;method_18978(Lnet/minecraft/class_3218;Lnet/minecraft/class_1308;)Z
      official a Lbzi;a(Lash;Lbwh;)Z
    • shouldKeepRunning

      protected boolean shouldKeepRunning(ServerWorld serverWorld, MobEntity mobEntity, long long2)
      Overrides:
      shouldKeepRunning in class MultiTickTask<MobEntity>
      Mappings:
      Namespace Name Mixin selector
      named shouldKeepRunning Lnet/minecraft/entity/ai/brain/task/MoveToTargetTask;shouldKeepRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/MobEntity;J)Z
      intermediary method_18979 Lnet/minecraft/class_4112;method_18979(Lnet/minecraft/class_3218;Lnet/minecraft/class_1308;J)Z
      official a Lbzi;a(Lash;Lbwh;J)Z
    • finishRunning

      protected void finishRunning(ServerWorld serverWorld, MobEntity mobEntity, long long2)
      Overrides:
      finishRunning in class MultiTickTask<MobEntity>
      Mappings:
      Namespace Name Mixin selector
      named finishRunning Lnet/minecraft/entity/ai/brain/task/MoveToTargetTask;finishRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/MobEntity;J)V
      intermediary method_18981 Lnet/minecraft/class_4112;method_18981(Lnet/minecraft/class_3218;Lnet/minecraft/class_1308;J)V
      official b Lbzi;b(Lash;Lbwh;J)V
    • run

      protected void run(ServerWorld serverWorld, MobEntity mobEntity, long long2)
      Overrides:
      run in class MultiTickTask<MobEntity>
      Mappings:
      Namespace Name Mixin selector
      named run Lnet/minecraft/entity/ai/brain/task/MoveToTargetTask;run(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/MobEntity;J)V
      intermediary method_18982 Lnet/minecraft/class_4112;method_18982(Lnet/minecraft/class_3218;Lnet/minecraft/class_1308;J)V
      official c Lbzi;c(Lash;Lbwh;J)V
    • keepRunning

      protected void keepRunning(ServerWorld serverWorld, MobEntity mobEntity, long long2)
      Overrides:
      keepRunning in class MultiTickTask<MobEntity>
      Mappings:
      Namespace Name Mixin selector
      named keepRunning Lnet/minecraft/entity/ai/brain/task/MoveToTargetTask;keepRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/MobEntity;J)V
      intermediary method_18983 Lnet/minecraft/class_4112;method_18983(Lnet/minecraft/class_3218;Lnet/minecraft/class_1308;J)V
      official d Lbzi;d(Lash;Lbwh;J)V
    • hasFinishedPath

      private boolean hasFinishedPath(MobEntity entity, WalkTarget walkTarget, long time)
      Mappings:
      Namespace Name Mixin selector
      named hasFinishedPath Lnet/minecraft/entity/ai/brain/task/MoveToTargetTask;hasFinishedPath(Lnet/minecraft/entity/mob/MobEntity;Lnet/minecraft/entity/ai/brain/WalkTarget;J)Z
      intermediary method_18977 Lnet/minecraft/class_4112;method_18977(Lnet/minecraft/class_1308;Lnet/minecraft/class_4142;J)Z
      official a Lbzi;a(Lbwh;Lcfm;J)Z
    • hasReached

      private boolean hasReached(MobEntity entity, WalkTarget walkTarget)
      Mappings:
      Namespace Name Mixin selector
      named hasReached Lnet/minecraft/entity/ai/brain/task/MoveToTargetTask;hasReached(Lnet/minecraft/entity/mob/MobEntity;Lnet/minecraft/entity/ai/brain/WalkTarget;)Z
      intermediary method_18980 Lnet/minecraft/class_4112;method_18980(Lnet/minecraft/class_1308;Lnet/minecraft/class_4142;)Z
      official a Lbzi;a(Lbwh;Lcfm;)Z
    • isTargetSpectator

      private static boolean isTargetSpectator(WalkTarget target)
      Mappings:
      Namespace Name Mixin selector
      named isTargetSpectator Lnet/minecraft/entity/ai/brain/task/MoveToTargetTask;isTargetSpectator(Lnet/minecraft/entity/ai/brain/WalkTarget;)Z
      intermediary method_49793 Lnet/minecraft/class_4112;method_49793(Lnet/minecraft/class_4142;)Z
      official a Lbzi;a(Lcfm;)Z