Class MemoryTransferTask<E extends MobEntity,​T>

java.lang.Object
net.minecraft.entity.ai.brain.task.Task<E>
net.minecraft.entity.ai.brain.task.MemoryTransferTask<E,​T>

public class MemoryTransferTask<E extends MobEntity,​T>
extends Task<E>
Mappings:
Namespace Name
official asw
intermediary net/minecraft/class_4809
named net/minecraft/entity/ai/brain/task/MemoryTransferTask
  • Field Details

    • runPredicate

      private final Predicate<E extends MobEntity> runPredicate
      Mappings:
      Namespace Name Mixin selector
      official b Lasw;b:Ljava/util/function/Predicate;
      intermediary field_22288 Lnet/minecraft/class_4809;field_22288:Ljava/util/function/Predicate;
      named runPredicate Lnet/minecraft/entity/ai/brain/task/MemoryTransferTask;runPredicate:Ljava/util/function/Predicate;
    • sourceType

      private final MemoryModuleType<? extends T> sourceType
      Mappings:
      Namespace Name Mixin selector
      official c Lasw;c:Lazf;
      intermediary field_22289 Lnet/minecraft/class_4809;field_22289:Lnet/minecraft/class_4140;
      named sourceType Lnet/minecraft/entity/ai/brain/task/MemoryTransferTask;sourceType:Lnet/minecraft/entity/ai/brain/MemoryModuleType;
    • targetType

      private final MemoryModuleType<T> targetType
      Mappings:
      Namespace Name Mixin selector
      official d Lasw;d:Lazf;
      intermediary field_22290 Lnet/minecraft/class_4809;field_22290:Lnet/minecraft/class_4140;
      named targetType Lnet/minecraft/entity/ai/brain/task/MemoryTransferTask;targetType:Lnet/minecraft/entity/ai/brain/MemoryModuleType;
    • duration

      private final IntRange duration
      Mappings:
      Namespace Name Mixin selector
      official e Lasw;e:Lafy;
      intermediary field_22291 Lnet/minecraft/class_4809;field_22291:Lnet/minecraft/class_4801;
      named duration Lnet/minecraft/entity/ai/brain/task/MemoryTransferTask;duration:Lnet/minecraft/util/math/IntRange;
  • Constructor Details

    • MemoryTransferTask

      public MemoryTransferTask​(Predicate<E> runPredicate, MemoryModuleType<? extends T> sourceType, MemoryModuleType<T> targetType, IntRange duration)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lasw;<init>(Ljava/util/function/Predicate;Lazf;Lazf;Lafy;)V
      intermediary <init> Lnet/minecraft/class_4809;<init>(Ljava/util/function/Predicate;Lnet/minecraft/class_4140;Lnet/minecraft/class_4140;Lnet/minecraft/class_4801;)V
      named <init> Lnet/minecraft/entity/ai/brain/task/MemoryTransferTask;<init>(Ljava/util/function/Predicate;Lnet/minecraft/entity/ai/brain/MemoryModuleType;Lnet/minecraft/entity/ai/brain/MemoryModuleType;Lnet/minecraft/util/math/IntRange;)V
  • Method Details

    • shouldRun

      protected boolean shouldRun​(ServerWorld serverWorld, E e)
      Overrides:
      shouldRun in class Task<E extends MobEntity>
      Mappings:
      Namespace Name Mixin selector
      official a Lasw;a(Laav;Larj;)Z
      intermediary method_24566 Lnet/minecraft/class_4809;method_24566(Lnet/minecraft/class_3218;Lnet/minecraft/class_1308;)Z
      named shouldRun Lnet/minecraft/entity/ai/brain/task/MemoryTransferTask;shouldRun(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/MobEntity;)Z
    • run

      protected void run​(ServerWorld serverWorld, E e, long long2)
      Overrides:
      run in class Task<E extends MobEntity>
      Mappings:
      Namespace Name Mixin selector
      official a Lasw;a(Laav;Larj;J)V
      intermediary method_24567 Lnet/minecraft/class_4809;method_24567(Lnet/minecraft/class_3218;Lnet/minecraft/class_1308;J)V
      named run Lnet/minecraft/entity/ai/brain/task/MemoryTransferTask;run(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/MobEntity;J)V