Class CompositeTask<E extends LivingEntity>
java.lang.Object
net.minecraft.entity.ai.brain.task.Task<E>
net.minecraft.entity.ai.brain.task.CompositeTask<E>
- Direct Known Subclasses:
RandomTask
- Mappings:
Namespace Name official azw
intermediary net/minecraft/class_4103
named net/minecraft/entity/ai/brain/task/CompositeTask
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
static enum
Nested classes/interfaces inherited from class net.minecraft.entity.ai.brain.task.Task
Task.Status
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Set<MemoryModuleType<?>>
private final CompositeTask.Order
private final CompositeTask.RunMode
private final WeightedList<Task<? super E>>
Fields inherited from class net.minecraft.entity.ai.brain.task.Task
requiredMemoryStates
-
Constructor Summary
ConstructorDescriptionCompositeTask
(Map<MemoryModuleType<?>, MemoryModuleState> requiredMemoryState, Set<MemoryModuleType<?>> memoriesToForgetWhenStopped, CompositeTask.Order order, CompositeTask.RunMode runMode, List<com.mojang.datafixers.util.Pair<Task<? super E>, Integer>> tasks) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
finishRunning
(ServerWorld world, E entity, long time) protected boolean
isTimeLimitExceeded
(long time) protected void
keepRunning
(ServerWorld world, E entity, long time) protected void
run
(ServerWorld world, E entity, long time) protected boolean
shouldKeepRunning
(ServerWorld world, E entity, long time) toString()
-
Field Details
-
memoriesToForgetWhenStopped
- Mappings:
Namespace Name Mixin selector official a
Lazw;a: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
Lazw;c:Lazw$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
Lazw;d:Lazw$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
Lazw;e:Lbbq;
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;
-
-
Constructor Details
-
CompositeTask
public CompositeTask(Map<MemoryModuleType<?>, MemoryModuleState> requiredMemoryState, Set<MemoryModuleType<?>> memoriesToForgetWhenStopped, CompositeTask.Order order, CompositeTask.RunMode runMode, List<com.mojang.datafixers.util.Pair<Task<? super E>, Integer>> tasks) - Mappings:
Namespace Name Mixin selector official <init>
Lazw;<init>(Ljava/util/Map;Ljava/util/Set;Lazw$a;Lazw$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
-
shouldKeepRunning
- Overrides:
shouldKeepRunning
in classTask<E extends LivingEntity>
- Mappings:
Namespace Name Mixin selector official b
Lazk;b(Ladw;Laxy;J)Z
intermediary method_18927
Lnet/minecraft/class_4097;method_18927(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;J)Z
named shouldKeepRunning
Lnet/minecraft/entity/ai/brain/task/Task;shouldKeepRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;J)Z
-
isTimeLimitExceeded
protected boolean isTimeLimitExceeded(long time) - Overrides:
isTimeLimitExceeded
in classTask<E extends LivingEntity>
- Mappings:
Namespace Name Mixin selector official a
Lazk;a(J)Z
intermediary method_18915
Lnet/minecraft/class_4097;method_18915(J)Z
named isTimeLimitExceeded
Lnet/minecraft/entity/ai/brain/task/Task;isTimeLimitExceeded(J)Z
-
run
- Overrides:
run
in classTask<E extends LivingEntity>
- Mappings:
Namespace Name Mixin selector official a
Lazk;a(Ladw;Laxy;J)V
intermediary method_18920
Lnet/minecraft/class_4097;method_18920(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;J)V
named run
Lnet/minecraft/entity/ai/brain/task/Task;run(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;J)V
-
keepRunning
- Overrides:
keepRunning
in classTask<E extends LivingEntity>
- Mappings:
Namespace Name Mixin selector official d
Lazk;d(Ladw;Laxy;J)V
intermediary method_18924
Lnet/minecraft/class_4097;method_18924(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;J)V
named keepRunning
Lnet/minecraft/entity/ai/brain/task/Task;keepRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;J)V
-
finishRunning
- Overrides:
finishRunning
in classTask<E extends LivingEntity>
- Mappings:
Namespace Name Mixin selector official c
Lazk;c(Ladw;Laxy;J)V
intermediary method_18926
Lnet/minecraft/class_4097;method_18926(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;J)V
named finishRunning
Lnet/minecraft/entity/ai/brain/task/Task;finishRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;J)V
-
toString
- Overrides:
toString
in classTask<E extends LivingEntity>
-