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 bvt
-
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
Lbvt;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
Lbvt;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
Lbvt;c:Lbvt$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
Lbvt;d:Lbvt$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
Lbvt;e:Lbxo;
-
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
Lbvt;f:Lbvf$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>
Lbvt;<init>(Ljava/util/Map;Ljava/util/Set;Lbvt$a;Lbvt$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
Lbvg;a()Lbvf$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
Lbvt;a(Lbtl;)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
Lbvg;e(Laqt;Lbtl;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
Lbvg;f(Laqt;Lbtl;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
Lbvg;g(Laqt;Lbtl;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
Lbvg;b()Ljava/lang/String;
-
toString
-