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 official boq
intermediary net/minecraft/class_4103
named net/minecraft/entity/ai/brain/task/CompositeTask
-
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 official a
Lboq;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
- Mappings:
Namespace Name Mixin selector official b
Lboq;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
- Mappings:
Namespace Name Mixin selector official c
Lboq;c:Lboq$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
- Mappings:
Namespace Name Mixin selector official d
Lboq;d:Lboq$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
- Mappings:
Namespace Name Mixin selector official e
Lboq;e:Lbql;
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
- Mappings:
Namespace Name Mixin selector official f
Lboq;f:Lboc$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>
Lboq;<init>(Ljava/util/Map;Ljava/util/Set;Lboq$a;Lboq$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
- Specified by:
getStatus
in interfaceTask<E extends LivingEntity>
- Mappings:
Namespace Name Mixin selector official a
Lbod;a()Lboc$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
- Mappings:
Namespace Name Mixin selector official a
Lboq;a(Lbml;)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
- Specified by:
tryStarting
in interfaceTask<E extends LivingEntity>
- Mappings:
Namespace Name Mixin selector official e
Lbod;e(Land;Lbml;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
- Specified by:
tick
in interfaceTask<E extends LivingEntity>
- Mappings:
Namespace Name Mixin selector official f
Lbod;f(Land;Lbml;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
- Specified by:
stop
in interfaceTask<E extends LivingEntity>
- Mappings:
Namespace Name Mixin selector official g
Lbod;g(Land;Lbml;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
- Specified by:
getName
in interfaceTask<E extends LivingEntity>
- Mappings:
Namespace Name Mixin selector official b
Lbod;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
-