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 auk
intermediary net/minecraft/class_4290
named net/minecraft/entity/ai/brain/task/WalkHomeTask
  • Field Details

    • speed

      private final float speed
      Mappings:
      Namespace Name Mixin selector
      official b Lauk;b: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 c Lauk;c: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 d Lauk;d: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 e Lauk;e: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> Lauk;<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 Lass;a(Laav;Lari;)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 Lass;a(Laav;Lari;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