Class CompositeTask<E extends LivingEntity>

java.lang.Object
net.minecraft.entity.ai.brain.task.Task<E>
net.minecraft.entity.ai.brain.task.CompositeTask<E>
Direct Known Subclasses:
RandomTask

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

    • memoriesToForgetWhenStopped

      private final Set<MemoryModuleType<?>> memoriesToForgetWhenStopped
      Mappings:
      Namespace Name Mixin selector
      official a Lazf;a:Ljava/util/Set;
      intermediary field_18344 Lnet/minecraft/class_4103;field_18344:Ljava/util/Set;
      named memoriesToForgetWhenStopped Lnet/minecraft/entity/ai/brain/task/CompositeTask;memoriesToForgetWhenStopped:Ljava/util/Set;
    • order

      private final CompositeTask.Order order
      Mappings:
      Namespace Name Mixin selector
      official c Lazf;c:Lazf$a;
      intermediary field_18345 Lnet/minecraft/class_4103;field_18345:Lnet/minecraft/class_4103$class_4104;
      named order Lnet/minecraft/entity/ai/brain/task/CompositeTask;order:Lnet/minecraft/entity/ai/brain/task/CompositeTask$Order;
    • runMode

      private final CompositeTask.RunMode runMode
      Mappings:
      Namespace Name Mixin selector
      official d Lazf;d:Lazf$b;
      intermediary field_18346 Lnet/minecraft/class_4103;field_18346:Lnet/minecraft/class_4103$class_4216;
      named runMode Lnet/minecraft/entity/ai/brain/task/CompositeTask;runMode:Lnet/minecraft/entity/ai/brain/task/CompositeTask$RunMode;
    • tasks

      private final WeightedList<Task<? super E extends LivingEntity>> tasks
      Mappings:
      Namespace Name Mixin selector
      official e Lazf;e:Lbaz;
      intermediary field_18347 Lnet/minecraft/class_4103;field_18347:Lnet/minecraft/class_6032;
      named tasks Lnet/minecraft/entity/ai/brain/task/CompositeTask;tasks:Lnet/minecraft/util/collection/WeightedList;
  • Constructor Details

    • CompositeTask

      public CompositeTask(Map<MemoryModuleType<?>,MemoryModuleState> requiredMemoryState, Set<MemoryModuleType<?>> memoriesToForgetWhenStopped, CompositeTask.Order order, CompositeTask.RunMode runMode, List<com.mojang.datafixers.util.Pair<Task<? super E>,Integer>> tasks)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lazf;<init>(Ljava/util/Map;Ljava/util/Set;Lazf$a;Lazf$b;Ljava/util/List;)V
      intermediary <init> Lnet/minecraft/class_4103;<init>(Ljava/util/Map;Ljava/util/Set;Lnet/minecraft/class_4103$class_4104;Lnet/minecraft/class_4103$class_4216;Ljava/util/List;)V
      named <init> Lnet/minecraft/entity/ai/brain/task/CompositeTask;<init>(Ljava/util/Map;Ljava/util/Set;Lnet/minecraft/entity/ai/brain/task/CompositeTask$Order;Lnet/minecraft/entity/ai/brain/task/CompositeTask$RunMode;Ljava/util/List;)V
  • Method Details

    • shouldKeepRunning

      protected boolean shouldKeepRunning(ServerWorld world, E entity, long time)
      Overrides:
      shouldKeepRunning in class Task<E extends LivingEntity>
      Mappings:
      Namespace Name Mixin selector
      official b Layt;b(Ladi;Laxh;J)Z
      intermediary method_18927 Lnet/minecraft/class_4097;method_18927(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;J)Z
      named shouldKeepRunning Lnet/minecraft/entity/ai/brain/task/Task;shouldKeepRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;J)Z
    • isTimeLimitExceeded

      protected boolean isTimeLimitExceeded(long time)
      Overrides:
      isTimeLimitExceeded in class Task<E extends LivingEntity>
      Mappings:
      Namespace Name Mixin selector
      official a Layt;a(J)Z
      intermediary method_18915 Lnet/minecraft/class_4097;method_18915(J)Z
      named isTimeLimitExceeded Lnet/minecraft/entity/ai/brain/task/Task;isTimeLimitExceeded(J)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 Layt;a(Ladi;Laxh;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
    • keepRunning

      protected void keepRunning(ServerWorld world, E entity, long time)
      Overrides:
      keepRunning in class Task<E extends LivingEntity>
      Mappings:
      Namespace Name Mixin selector
      official d Layt;d(Ladi;Laxh;J)V
      intermediary method_18924 Lnet/minecraft/class_4097;method_18924(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;J)V
      named keepRunning Lnet/minecraft/entity/ai/brain/task/Task;keepRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;J)V
    • finishRunning

      protected void finishRunning(ServerWorld world, E entity, long time)
      Overrides:
      finishRunning in class Task<E extends LivingEntity>
      Mappings:
      Namespace Name Mixin selector
      official c Layt;c(Ladi;Laxh;J)V
      intermediary method_18926 Lnet/minecraft/class_4097;method_18926(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;J)V
      named finishRunning Lnet/minecraft/entity/ai/brain/task/Task;finishRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;J)V
    • toString

      public String toString()
      Overrides:
      toString in class Task<E extends LivingEntity>