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
public class CompositeTask<E extends LivingEntity> extends Task<E>
- Mappings:
Namespace Name official ate
intermediary net/minecraft/class_4103
named net/minecraft/entity/ai/brain/task/CompositeTask
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CompositeTask.Order
static class
CompositeTask.RunMode
Nested classes/interfaces inherited from class net.minecraft.entity.ai.brain.task.Task
Task.Status
-
Field Summary
Fields Modifier and Type Field Description private Set<MemoryModuleType<?>>
memoriesToForgetWhenStopped
private CompositeTask.Order
order
private CompositeTask.RunMode
runMode
private WeightedList<Task<? super E>>
tasks
Fields inherited from class net.minecraft.entity.ai.brain.task.Task
requiredMemoryStates
-
Constructor Summary
Constructors Constructor Description 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)
-
Method Summary
Modifier and Type Method Description protected 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)
String
toString()
-
Field Details
-
memoriesToForgetWhenStopped
- Mappings:
Namespace Name Mixin selector official b
Late;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
Late;c:Late$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
Late;d:Late$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
Late;e:Lavr;
intermediary field_18347
Lnet/minecraft/class_4103;field_18347:Lnet/minecraft/class_4131;
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>
Late;<init>(Ljava/util/Map;Ljava/util/Set;Late$a;Late$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
Lass;b(Laav;Lari;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
Lass;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
Lass;a(Laav;Lari;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
Lass;d(Laav;Lari;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
Lass;c(Laav;Lari;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>
- Mappings:
Namespace Name Mixin selector official toString
Lass;toString()Ljava/lang/String;
intermediary toString
Lnet/minecraft/class_4097;toString()Ljava/lang/String;
named toString
Lnet/minecraft/entity/ai/brain/task/Task;toString()Ljava/lang/String;
-