Class WalkTask

All Implemented Interfaces:
Task<PathAwareEntity>
Direct Known Subclasses:
CamelBrain.CamelWalkTask

public class WalkTask extends MultiTickTask<PathAwareEntity>
Mappings:
Namespace Name
official bfp
intermediary net/minecraft/class_6028
named net/minecraft/entity/ai/brain/task/WalkTask
  • Field Details

    • MIN_RUN_TIME

      private static final int MIN_RUN_TIME
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official c Lbfp;c:I
      intermediary field_30107 Lnet/minecraft/class_6028;field_30107:I
      named MIN_RUN_TIME Lnet/minecraft/entity/ai/brain/task/WalkTask;MIN_RUN_TIME:I
    • MAX_RUN_TIME

      private static final int MAX_RUN_TIME
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official d Lbfp;d:I
      intermediary field_30108 Lnet/minecraft/class_6028;field_30108:I
      named MAX_RUN_TIME Lnet/minecraft/entity/ai/brain/task/WalkTask;MAX_RUN_TIME:I
    • HORIZONTAL_RANGE

      private static final int HORIZONTAL_RANGE
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official e Lbfp;e:I
      intermediary field_30109 Lnet/minecraft/class_6028;field_30109:I
      named HORIZONTAL_RANGE Lnet/minecraft/entity/ai/brain/task/WalkTask;HORIZONTAL_RANGE:I
    • VERTICAL_RANGE

      private static final int VERTICAL_RANGE
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official f Lbfp;f:I
      intermediary field_30110 Lnet/minecraft/class_6028;field_30110:I
      named VERTICAL_RANGE Lnet/minecraft/entity/ai/brain/task/WalkTask;VERTICAL_RANGE:I
    • speed

      private final float speed
      Mappings:
      Namespace Name Mixin selector
      official g Lbfp;g:F
      intermediary field_30111 Lnet/minecraft/class_6028;field_30111:F
      named speed Lnet/minecraft/entity/ai/brain/task/WalkTask;speed:F
  • Constructor Details

    • WalkTask

      public WalkTask(float speed)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbfp;<init>(F)V
      intermediary <init> Lnet/minecraft/class_6028;<init>(F)V
      named <init> Lnet/minecraft/entity/ai/brain/task/WalkTask;<init>(F)V
  • Method Details

    • shouldKeepRunning

      protected boolean shouldKeepRunning(ServerWorld serverWorld, PathAwareEntity pathAwareEntity, long long2)
      Overrides:
      shouldKeepRunning in class MultiTickTask<PathAwareEntity>
      Mappings:
      Namespace Name Mixin selector
      official a Lbfp;a(Lahm;Lbep;J)Z
      intermediary method_35063 Lnet/minecraft/class_6028;method_35063(Lnet/minecraft/class_3218;Lnet/minecraft/class_1314;J)Z
      named shouldKeepRunning Lnet/minecraft/entity/ai/brain/task/WalkTask;shouldKeepRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/PathAwareEntity;J)Z
    • run

      protected void run(ServerWorld serverWorld, PathAwareEntity pathAwareEntity, long long2)
      Overrides:
      run in class MultiTickTask<PathAwareEntity>
      Mappings:
      Namespace Name Mixin selector
      official b Lbfp;b(Lahm;Lbep;J)V
      intermediary method_35064 Lnet/minecraft/class_6028;method_35064(Lnet/minecraft/class_3218;Lnet/minecraft/class_1314;J)V
      named run Lnet/minecraft/entity/ai/brain/task/WalkTask;run(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/PathAwareEntity;J)V
    • finishRunning

      protected void finishRunning(ServerWorld serverWorld, PathAwareEntity pathAwareEntity, long long2)
      Overrides:
      finishRunning in class MultiTickTask<PathAwareEntity>
      Mappings:
      Namespace Name Mixin selector
      official c Lbfp;c(Lahm;Lbep;J)V
      intermediary method_44203 Lnet/minecraft/class_6028;method_44203(Lnet/minecraft/class_3218;Lnet/minecraft/class_1314;J)V
      named finishRunning Lnet/minecraft/entity/ai/brain/task/WalkTask;finishRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/PathAwareEntity;J)V
    • keepRunning

      protected void keepRunning(ServerWorld serverWorld, PathAwareEntity pathAwareEntity, long long2)
      Overrides:
      keepRunning in class MultiTickTask<PathAwareEntity>
      Mappings:
      Namespace Name Mixin selector
      official d Lbfp;d(Lahm;Lbep;J)V
      intermediary method_35065 Lnet/minecraft/class_6028;method_35065(Lnet/minecraft/class_3218;Lnet/minecraft/class_1314;J)V
      named keepRunning Lnet/minecraft/entity/ai/brain/task/WalkTask;keepRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/PathAwareEntity;J)V
    • findTarget

      @Nullable private @Nullable Vec3d findTarget(PathAwareEntity entity, ServerWorld world)
      Mappings:
      Namespace Name Mixin selector
      official a Lbfp;a(Lbep;Lahm;)Leae;
      intermediary method_39761 Lnet/minecraft/class_6028;method_39761(Lnet/minecraft/class_1314;Lnet/minecraft/class_3218;)Lnet/minecraft/class_243;
      named findTarget Lnet/minecraft/entity/ai/brain/task/WalkTask;findTarget(Lnet/minecraft/entity/mob/PathAwareEntity;Lnet/minecraft/server/world/ServerWorld;)Lnet/minecraft/util/math/Vec3d;
    • findClosestWater

      private Optional<BlockPos> findClosestWater(BlockView world, Entity entity)
      Mappings:
      Namespace Name Mixin selector
      official a Lbfp;a(Lcjc;Lbdr;)Ljava/util/Optional;
      intermediary method_39762 Lnet/minecraft/class_6028;method_39762(Lnet/minecraft/class_1922;Lnet/minecraft/class_1297;)Ljava/util/Optional;
      named findClosestWater Lnet/minecraft/entity/ai/brain/task/WalkTask;findClosestWater(Lnet/minecraft/world/BlockView;Lnet/minecraft/entity/Entity;)Ljava/util/Optional;