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 azw
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 Lazw;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 Lazw;c:Lazw$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 Lazw;d:Lazw$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 Lazw;e:Lbbq;
      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> Lazw;<init>(Ljava/util/Map;Ljava/util/Set;Lazw$a;Lazw$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 Lazk;b(Ladw;Laxy;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 Lazk;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 Lazk;a(Ladw;Laxy;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 Lazk;d(Ladw;Laxy;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 Lazk;c(Ladw;Laxy;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>