Class WalkHomeTask

java.lang.Object
net.minecraft.entity.ai.brain.task.Task<LivingEntity>
net.minecraft.entity.ai.brain.task.WalkHomeTask

public class WalkHomeTask extends Task<LivingEntity>
Mappings:
Namespace Name
official bap
intermediary net/minecraft/class_4290
named net/minecraft/entity/ai/brain/task/WalkHomeTask
  • Field Details

    • POI_EXPIRY

      private static final int POI_EXPIRY
      Represents the number of ticks (40) that this task will remember a point of interest after starting to move towards it.
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lbap;a:I
      intermediary field_30161 Lnet/minecraft/class_4290;field_30161:I
      named POI_EXPIRY Lnet/minecraft/entity/ai/brain/task/WalkHomeTask;POI_EXPIRY:I
    • MAX_TRIES

      private static final int MAX_TRIES
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official c Lbap;c:I
      intermediary field_30162 Lnet/minecraft/class_4290;field_30162:I
      named MAX_TRIES Lnet/minecraft/entity/ai/brain/task/WalkHomeTask;MAX_TRIES:I
    • RUN_TIME

      private static final int RUN_TIME
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official d Lbap;d:I
      intermediary field_30163 Lnet/minecraft/class_4290;field_30163:I
      named RUN_TIME Lnet/minecraft/entity/ai/brain/task/WalkHomeTask;RUN_TIME:I
    • MAX_DISTANCE

      private static final int MAX_DISTANCE
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official e Lbap;e:I
      intermediary field_30164 Lnet/minecraft/class_4290;field_30164:I
      named MAX_DISTANCE Lnet/minecraft/entity/ai/brain/task/WalkHomeTask;MAX_DISTANCE:I
    • speed

      private final float speed
      Mappings:
      Namespace Name Mixin selector
      official f Lbap;f:F
      intermediary field_20290 Lnet/minecraft/class_4290;field_20290:F
      named speed Lnet/minecraft/entity/ai/brain/task/WalkHomeTask;speed:F
    • positionToExpiry

      private final Long2LongMap positionToExpiry
      Mappings:
      Namespace Name Mixin selector
      official g Lbap;g:Lit/unimi/dsi/fastutil/longs/Long2LongMap;
      intermediary field_20291 Lnet/minecraft/class_4290;field_20291:Lit/unimi/dsi/fastutil/longs/Long2LongMap;
      named positionToExpiry Lnet/minecraft/entity/ai/brain/task/WalkHomeTask;positionToExpiry:Lit/unimi/dsi/fastutil/longs/Long2LongMap;
    • tries

      private int tries
      Mappings:
      Namespace Name Mixin selector
      official h Lbap;h:I
      intermediary field_20292 Lnet/minecraft/class_4290;field_20292:I
      named tries Lnet/minecraft/entity/ai/brain/task/WalkHomeTask;tries:I
    • expiryTimeLimit

      private long expiryTimeLimit
      Mappings:
      Namespace Name Mixin selector
      official i Lbap;i:J
      intermediary field_19260 Lnet/minecraft/class_4290;field_19260:J
      named expiryTimeLimit Lnet/minecraft/entity/ai/brain/task/WalkHomeTask;expiryTimeLimit:J
  • Constructor Details

    • WalkHomeTask

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

    • shouldRun

      protected boolean shouldRun(ServerWorld world, LivingEntity entity)
      Overrides:
      shouldRun in class Task<LivingEntity>
      Mappings:
      Namespace Name Mixin selector
      official a Layt;a(Ladi;Laxh;)Z
      intermediary method_18919 Lnet/minecraft/class_4097;method_18919(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;)Z
      named shouldRun Lnet/minecraft/entity/ai/brain/task/Task;shouldRun(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;)Z
    • run

      protected void run(ServerWorld world, LivingEntity entity, long time)
      Overrides:
      run in class Task<LivingEntity>
      Mappings:
      Namespace Name Mixin selector
      official a Layt;a(Ladi;Laxh;J)V
      intermediary method_18920 Lnet/minecraft/class_4097;method_18920(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;J)V
      named run Lnet/minecraft/entity/ai/brain/task/Task;run(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;J)V