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
- Mappings:
Namespace Name named net/minecraft/entity/ai/brain/task/CompositeTask
intermediary net/minecraft/class_4103
official bym
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
static enum
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Set
<MemoryModuleType<?>> private final CompositeTask.Order
private final Map
<MemoryModuleType<?>, MemoryModuleState> private final CompositeTask.RunMode
private MultiTickTask.Status
private final WeightedList
<Task<? super E>> -
Constructor Summary
ConstructorDescriptionCompositeTask
(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) -
Method Summary
Modifier and TypeMethodDescriptiongetName()
private boolean
shouldStart
(E entity) final void
stop
(ServerWorld world, E entity, long time) final void
tick
(ServerWorld world, E entity, long time) toString()
final boolean
tryStarting
(ServerWorld world, E entity, long time)
-
Field Details
-
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
Lbym;a:Ljava/util/Map;
-
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
Lbym;b:Ljava/util/Set;
-
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
Lbym;c:Lbym$a;
-
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
Lbym;d:Lbym$b;
-
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
Lbym;e:Lcah;
-
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
Lbym;f:Lbxy$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>
Lbym;<init>(Ljava/util/Map;Ljava/util/Set;Lbym$a;Lbym$b;Ljava/util/List;)V
-
-
Method Details
-
getStatus
- Specified by:
getStatus
in interfaceTask<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
Lbxz;a()Lbxy$a;
-
shouldStart
- 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
Lbym;a(Lbwf;)Z
-
tryStarting
- Specified by:
tryStarting
in interfaceTask<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
Lbxz;e(Lash;Lbwf;J)Z
-
tick
- Specified by:
tick
in interfaceTask<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
Lbxz;f(Lash;Lbwf;J)V
-
stop
- Specified by:
stop
in interfaceTask<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
Lbxz;g(Lash;Lbwf;J)V
-
getName
- Specified by:
getName
in interfaceTask<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
Lbxz;b()Ljava/lang/String;
-
toString
-