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 bds
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 a Lbds;a: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 d Lbds;d:Lbku;
      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 e Lbds;e:Lbku;
      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 UniformIntProvider duration
      Mappings:
      Namespace Name Mixin selector
      official f Lbds;f:Lazu;
      intermediary field_22291 Lnet/minecraft/class_4809;field_22291:Lnet/minecraft/class_6019;
      named duration Lnet/minecraft/entity/ai/brain/task/MemoryTransferTask;duration:Lnet/minecraft/util/math/intprovider/UniformIntProvider;
  • Constructor Details

    • MemoryTransferTask

      public MemoryTransferTask(Predicate<E> runPredicate, MemoryModuleType<? extends T> sourceType, MemoryModuleType<T> targetType, UniformIntProvider duration)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbds;<init>(Ljava/util/function/Predicate;Lbku;Lbku;Lazu;)V
      intermediary <init> Lnet/minecraft/class_4809;<init>(Ljava/util/function/Predicate;Lnet/minecraft/class_4140;Lnet/minecraft/class_4140;Lnet/minecraft/class_6019;)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/intprovider/UniformIntProvider;)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 Lbds;a(Lagg;Lbce;)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 Lbds;a(Lagg;Lbce;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