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
official bif
intermediary net/minecraft/class_4103
named net/minecraft/entity/ai/brain/task/CompositeTask
  • Field Details

    • requiredMemoryState

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

      private final Set<MemoryModuleType<?>> memoriesToForgetWhenStopped
      Mappings:
      Namespace Name Mixin selector
      official b Lbif;b: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 Lbif;c:Lbif$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 Lbif;d:Lbif$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 Lbif;e:Lbjz;
      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;
    • status

      private MultiTickTask.Status status
      Mappings:
      Namespace Name Mixin selector
      official f Lbif;f:Lbhr$a;
      intermediary field_40993 Lnet/minecraft/class_4103;field_40993:Lnet/minecraft/class_4097$class_4098;
      named status Lnet/minecraft/entity/ai/brain/task/CompositeTask;status:Lnet/minecraft/entity/ai/brain/task/MultiTickTask$Status;
  • 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
      official <init> Lbif;<init>(Ljava/util/Map;Ljava/util/Set;Lbif$a;Lbif$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

    • getStatus

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

      private boolean shouldStart(E entity)
      Mappings:
      Namespace Name Mixin selector
      official a Lbif;a(Lbfz;)Z
      intermediary method_46924 Lnet/minecraft/class_4103;method_46924(Lnet/minecraft/class_1309;)Z
      named shouldStart Lnet/minecraft/entity/ai/brain/task/CompositeTask;shouldStart(Lnet/minecraft/entity/LivingEntity;)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
      official e Lbhs;e(Laif;Lbfz;J)Z
      intermediary method_18922 Lnet/minecraft/class_7893;method_18922(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;J)Z
      named tryStarting Lnet/minecraft/entity/ai/brain/task/Task;tryStarting(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;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
      official f Lbhs;f(Laif;Lbfz;J)V
      intermediary method_18923 Lnet/minecraft/class_7893;method_18923(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;J)V
      named tick Lnet/minecraft/entity/ai/brain/task/Task;tick(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;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
      official g Lbhs;g(Laif;Lbfz;J)V
      intermediary method_18925 Lnet/minecraft/class_7893;method_18925(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;J)V
      named stop Lnet/minecraft/entity/ai/brain/task/Task;stop(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;J)V
    • getName

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

      public String toString()
      Overrides:
      toString in class Object