Class MultiTask<E extends LivingEntity>
java.lang.Object
net.minecraft.entity.ai.brain.task.Task<E>
net.minecraft.entity.ai.brain.task.MultiTask<E>
- Direct Known Subclasses:
FirstShuffledTask
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static enum
(package private) static enum
Nested classes/interfaces inherited from class net.minecraft.entity.ai.brain.task.Task
Task.Status
-
Field Summary
Modifier and TypeFieldDescriptionprivate final WeightedList<Task<? super E>>
private final Set<MemoryModuleType<?>>
private final MultiTask.Ordering
private final MultiTask.RunType
Fields inherited from class net.minecraft.entity.ai.brain.task.Task
entryCondition
-
Constructor Summary
ConstructorDescriptionMultiTask
(Map<MemoryModuleType<?>, MemoryModuleStatus> p_i51503_1_, Set<MemoryModuleType<?>> p_i51503_2_, MultiTask.Ordering p_i51503_3_, MultiTask.RunType p_i51503_4_, List<com.mojang.datafixers.util.Pair<Task<? super E>, Integer>> p_i51503_5_) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
canStillUse
(ServerWorld p_212834_1_, E p_212834_2_, long p_212834_3_) protected void
start
(ServerWorld p_212831_1_, E p_212831_2_, long p_212831_3_) protected void
stop
(ServerWorld p_212835_1_, E p_212835_2_, long p_212835_3_) protected void
tick
(ServerWorld p_212833_1_, E p_212833_2_, long p_212833_3_) protected boolean
timedOut
(long p_220383_1_) toString()
Methods inherited from class net.minecraft.entity.ai.brain.task.Task
checkExtraStartConditions, doStop, getStatus, tickOrStop, tryStart
-
Field Details
-
exitErasedMemories
-
orderPolicy
-
runningPolicy
-
behaviors
-
-
Constructor Details
-
MultiTask
public MultiTask(Map<MemoryModuleType<?>, MemoryModuleStatus> p_i51503_1_, Set<MemoryModuleType<?>> p_i51503_2_, MultiTask.Ordering p_i51503_3_, MultiTask.RunType p_i51503_4_, List<com.mojang.datafixers.util.Pair<Task<? super E>, Integer>> p_i51503_5_)
-
-
Method Details
-
canStillUse
- Overrides:
canStillUse
in classTask<E extends LivingEntity>
-
timedOut
protected boolean timedOut(long p_220383_1_) - Overrides:
timedOut
in classTask<E extends LivingEntity>
-
start
- Overrides:
start
in classTask<E extends LivingEntity>
-
tick
- Overrides:
tick
in classTask<E extends LivingEntity>
-
stop
- Overrides:
stop
in classTask<E extends LivingEntity>
-
toString
- Overrides:
toString
in classTask<E extends LivingEntity>
-