Class ForgetTask<E extends LivingEntity>

java.lang.Object
net.minecraft.entity.ai.brain.task.Task<E>
net.minecraft.entity.ai.brain.task.ForgetTask<E>

public class ForgetTask<E extends LivingEntity> extends Task<E>
Mappings:
Namespace Name
official bdc
intermediary net/minecraft/class_4813
named net/minecraft/entity/ai/brain/task/ForgetTask
  • Field Details

    • condition

      private final Predicate<E extends LivingEntity> condition
      Mappings:
      Namespace Name Mixin selector
      official a Lbdc;a:Ljava/util/function/Predicate;
      intermediary field_22302 Lnet/minecraft/class_4813;field_22302:Ljava/util/function/Predicate;
      named condition Lnet/minecraft/entity/ai/brain/task/ForgetTask;condition:Ljava/util/function/Predicate;
    • memory

      private final MemoryModuleType<?> memory
      Mappings:
      Namespace Name Mixin selector
      official d Lbdc;d:Lbjx;
      intermediary field_22303 Lnet/minecraft/class_4813;field_22303:Lnet/minecraft/class_4140;
      named memory Lnet/minecraft/entity/ai/brain/task/ForgetTask;memory:Lnet/minecraft/entity/ai/brain/MemoryModuleType;
  • Constructor Details

    • ForgetTask

      public ForgetTask(Predicate<E> condition, MemoryModuleType<?> memory)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbdc;<init>(Ljava/util/function/Predicate;Lbjx;)V
      intermediary <init> Lnet/minecraft/class_4813;<init>(Ljava/util/function/Predicate;Lnet/minecraft/class_4140;)V
      named <init> Lnet/minecraft/entity/ai/brain/task/ForgetTask;<init>(Ljava/util/function/Predicate;Lnet/minecraft/entity/ai/brain/MemoryModuleType;)V
  • Method Details

    • shouldRun

      protected boolean shouldRun(ServerWorld world, E entity)
      Overrides:
      shouldRun in class Task<E extends LivingEntity>
      Mappings:
      Namespace Name Mixin selector
      official a Lbcr;a(Lafo;Lbbf;)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, E entity, long time)
      Overrides:
      run in class Task<E extends LivingEntity>
      Mappings:
      Namespace Name Mixin selector
      official a Lbcr;a(Lafo;Lbbf;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