Class CompositeTask<E extends LivingEntity>

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

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

    • requiredMemoryState

      private final Map<MemoryModuleType<?>,MemoryModuleState> requiredMemoryState
      Mappings:
      Namespace Name Mixin selector
      named requiredMemoryState Lnet/minecraft/entity/ai/brain/task/CompositeTask;requiredMemoryState:Ljava/util/Map;
      intermediary field_40992 Lnet/minecraft/class_4103;field_40992:Ljava/util/Map;
      official a Lbvv;a:Ljava/util/Map;
    • memoriesToForgetWhenStopped

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

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

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

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

      private MultiTickTask.Status status
      Mappings:
      Namespace Name Mixin selector
      named status Lnet/minecraft/entity/ai/brain/task/CompositeTask;status:Lnet/minecraft/entity/ai/brain/task/MultiTickTask$Status;
      intermediary field_40993 Lnet/minecraft/class_4103;field_40993:Lnet/minecraft/class_4097$class_4098;
      official f Lbvv;f:Lbvh$a;
  • Constructor Details

    • CompositeTask

      public CompositeTask(Map<MemoryModuleType<?>,MemoryModuleState> requiredMemoryState, Set<MemoryModuleType<?>> memoriesToForgetWhenStopped, CompositeTask.Order order, CompositeTask.RunMode runMode, List<com.mojang.datafixers.util.Pair<? extends Task<? super E>,Integer>> tasks)
      Mappings:
      Namespace Name Mixin selector
      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
      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
      official <init> Lbvv;<init>(Ljava/util/Map;Ljava/util/Set;Lbvv$a;Lbvv$b;Ljava/util/List;)V
  • Method Details

    • getStatus

      public MultiTickTask.Status getStatus()
      Specified by:
      getStatus in interface Task<E extends LivingEntity>
      Mappings:
      Namespace Name Mixin selector
      named getStatus Lnet/minecraft/entity/ai/brain/task/Task;getStatus()Lnet/minecraft/entity/ai/brain/task/MultiTickTask$Status;
      intermediary method_18921 Lnet/minecraft/class_7893;method_18921()Lnet/minecraft/class_4097$class_4098;
      official a Lbvi;a()Lbvh$a;
    • shouldStart

      private boolean shouldStart(E entity)
      Mappings:
      Namespace Name Mixin selector
      named shouldStart Lnet/minecraft/entity/ai/brain/task/CompositeTask;shouldStart(Lnet/minecraft/entity/LivingEntity;)Z
      intermediary method_46924 Lnet/minecraft/class_4103;method_46924(Lnet/minecraft/class_1309;)Z
      official a Lbvv;a(Lbtn;)Z
    • tryStarting

      public final boolean tryStarting(ServerWorld world, E entity, long time)
      Specified by:
      tryStarting in interface Task<E extends LivingEntity>
      Mappings:
      Namespace Name Mixin selector
      named tryStarting Lnet/minecraft/entity/ai/brain/task/Task;tryStarting(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;J)Z
      intermediary method_18922 Lnet/minecraft/class_7893;method_18922(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;J)Z
      official e Lbvi;e(Laqu;Lbtn;J)Z
    • tick

      public final void tick(ServerWorld world, E entity, long time)
      Specified by:
      tick in interface Task<E extends LivingEntity>
      Mappings:
      Namespace Name Mixin selector
      named tick Lnet/minecraft/entity/ai/brain/task/Task;tick(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;J)V
      intermediary method_18923 Lnet/minecraft/class_7893;method_18923(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;J)V
      official f Lbvi;f(Laqu;Lbtn;J)V
    • stop

      public final void stop(ServerWorld world, E entity, long time)
      Specified by:
      stop in interface Task<E extends LivingEntity>
      Mappings:
      Namespace Name Mixin selector
      named stop Lnet/minecraft/entity/ai/brain/task/Task;stop(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;J)V
      intermediary method_18925 Lnet/minecraft/class_7893;method_18925(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;J)V
      official g Lbvi;g(Laqu;Lbtn;J)V
    • getName

      public String getName()
      Specified by:
      getName in interface Task<E extends LivingEntity>
      Mappings:
      Namespace Name Mixin selector
      named getName Lnet/minecraft/entity/ai/brain/task/Task;getName()Ljava/lang/String;
      intermediary method_46910 Lnet/minecraft/class_7893;method_46910()Ljava/lang/String;
      official b Lbvi;b()Ljava/lang/String;
    • toString

      public String toString()
      Overrides:
      toString in class Object