Class GoToRememberedPositionTask<T>

java.lang.Object
net.minecraft.entity.ai.brain.task.Task<PathAwareEntity>
net.minecraft.entity.ai.brain.task.GoToRememberedPositionTask<T>

public class GoToRememberedPositionTask<T>
extends Task<PathAwareEntity>
Mappings:
Namespace Name
official aup
intermediary net/minecraft/class_4121
named net/minecraft/entity/ai/brain/task/GoToRememberedPositionTask
  • Field Details

    • entityMemory

      private final MemoryModuleType<T> entityMemory
      Mappings:
      Namespace Name Mixin selector
      official b Laup;b:Lazf;
      intermediary field_18380 Lnet/minecraft/class_4121;field_18380:Lnet/minecraft/class_4140;
      named entityMemory Lnet/minecraft/entity/ai/brain/task/GoToRememberedPositionTask;entityMemory:Lnet/minecraft/entity/ai/brain/MemoryModuleType;
    • speed

      private final float speed
      Mappings:
      Namespace Name Mixin selector
      official c Laup;c:F
      intermediary field_18381 Lnet/minecraft/class_4121;field_18381:F
      named speed Lnet/minecraft/entity/ai/brain/task/GoToRememberedPositionTask;speed:F
    • range

      private final int range
      Mappings:
      Namespace Name Mixin selector
      official d Laup;d:I
      intermediary field_22321 Lnet/minecraft/class_4121;field_22321:I
      named range Lnet/minecraft/entity/ai/brain/task/GoToRememberedPositionTask;range:I
    • posRetriever

      private final Function<T,​Vec3d> posRetriever
      Mappings:
      Namespace Name Mixin selector
      official e Laup;e:Ljava/util/function/Function;
      intermediary field_22322 Lnet/minecraft/class_4121;field_22322:Ljava/util/function/Function;
      named posRetriever Lnet/minecraft/entity/ai/brain/task/GoToRememberedPositionTask;posRetriever:Ljava/util/function/Function;
  • Constructor Details

    • GoToRememberedPositionTask

      public GoToRememberedPositionTask​(MemoryModuleType<T> memoryType, float speed, int range, boolean requiresWalkTarget, Function<T,​Vec3d> posRetriever)
      Mappings:
      Namespace Name Mixin selector
      official <init> Laup;<init>(Lazf;FIZLjava/util/function/Function;)V
      intermediary <init> Lnet/minecraft/class_4121;<init>(Lnet/minecraft/class_4140;FIZLjava/util/function/Function;)V
      named <init> Lnet/minecraft/entity/ai/brain/task/GoToRememberedPositionTask;<init>(Lnet/minecraft/entity/ai/brain/MemoryModuleType;FIZLjava/util/function/Function;)V
  • Method Details

    • toBlock

      public static GoToRememberedPositionTask<BlockPos> toBlock​(MemoryModuleType<BlockPos> memoryType, float speed, int range, boolean requiresWalkTarget)
      Mappings:
      Namespace Name Mixin selector
      official a Laup;a(Lazf;FIZ)Laup;
      intermediary method_24601 Lnet/minecraft/class_4121;method_24601(Lnet/minecraft/class_4140;FIZ)Lnet/minecraft/class_4121;
      named toBlock Lnet/minecraft/entity/ai/brain/task/GoToRememberedPositionTask;toBlock(Lnet/minecraft/entity/ai/brain/MemoryModuleType;FIZ)Lnet/minecraft/entity/ai/brain/task/GoToRememberedPositionTask;
    • toEntity

      public static GoToRememberedPositionTask<? extends Entity> toEntity​(MemoryModuleType<? extends Entity> memoryType, float speed, int range, boolean requiresWalkTarget)
      Mappings:
      Namespace Name Mixin selector
      official b Laup;b(Lazf;FIZ)Laup;
      intermediary method_24603 Lnet/minecraft/class_4121;method_24603(Lnet/minecraft/class_4140;FIZ)Lnet/minecraft/class_4121;
      named toEntity Lnet/minecraft/entity/ai/brain/task/GoToRememberedPositionTask;toEntity(Lnet/minecraft/entity/ai/brain/MemoryModuleType;FIZ)Lnet/minecraft/entity/ai/brain/task/GoToRememberedPositionTask;
    • shouldRun

      protected boolean shouldRun​(ServerWorld serverWorld, PathAwareEntity pathAwareEntity)
      Overrides:
      shouldRun in class Task<PathAwareEntity>
      Mappings:
      Namespace Name Mixin selector
      official a Laup;a(Laav;Larq;)Z
      intermediary method_19002 Lnet/minecraft/class_4121;method_19002(Lnet/minecraft/class_3218;Lnet/minecraft/class_1314;)Z
      named shouldRun Lnet/minecraft/entity/ai/brain/task/GoToRememberedPositionTask;shouldRun(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/PathAwareEntity;)Z
    • getPos

      private Vec3d getPos​(PathAwareEntity entity)
      Mappings:
      Namespace Name Mixin selector
      official a Laup;a(Larq;)Ldiu;
      intermediary method_24600 Lnet/minecraft/class_4121;method_24600(Lnet/minecraft/class_1314;)Lnet/minecraft/class_243;
      named getPos Lnet/minecraft/entity/ai/brain/task/GoToRememberedPositionTask;getPos(Lnet/minecraft/entity/mob/PathAwareEntity;)Lnet/minecraft/util/math/Vec3d;
    • isWalkTargetPresentAndFar

      private boolean isWalkTargetPresentAndFar​(PathAwareEntity entity)
      Mappings:
      Namespace Name Mixin selector
      official b Laup;b(Larq;)Z
      intermediary method_24602 Lnet/minecraft/class_4121;method_24602(Lnet/minecraft/class_1314;)Z
      named isWalkTargetPresentAndFar Lnet/minecraft/entity/ai/brain/task/GoToRememberedPositionTask;isWalkTargetPresentAndFar(Lnet/minecraft/entity/mob/PathAwareEntity;)Z
    • run

      protected void run​(ServerWorld serverWorld, PathAwareEntity pathAwareEntity, long long2)
      Overrides:
      run in class Task<PathAwareEntity>
      Mappings:
      Namespace Name Mixin selector
      official a Laup;a(Laav;Larq;J)V
      intermediary method_19003 Lnet/minecraft/class_4121;method_19003(Lnet/minecraft/class_3218;Lnet/minecraft/class_1314;J)V
      named run Lnet/minecraft/entity/ai/brain/task/GoToRememberedPositionTask;run(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/PathAwareEntity;J)V
    • setWalkTarget

      private static void setWalkTarget​(PathAwareEntity entity, Vec3d pos, float speed)
      Mappings:
      Namespace Name Mixin selector
      official a Laup;a(Larq;Ldiu;F)V
      intermediary method_19596 Lnet/minecraft/class_4121;method_19596(Lnet/minecraft/class_1314;Lnet/minecraft/class_243;F)V
      named setWalkTarget Lnet/minecraft/entity/ai/brain/task/GoToRememberedPositionTask;setWalkTarget(Lnet/minecraft/entity/mob/PathAwareEntity;Lnet/minecraft/util/math/Vec3d;F)V