Class SupplementedTask<E extends LivingEntity>
java.lang.Object
net.minecraft.entity.ai.brain.task.Task<E>
net.minecraft.entity.ai.brain.task.SupplementedTask<E>
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.brain.task.Task
Task.Status
-
Field Summary
Modifier and TypeFieldDescriptionprivate final boolean
Fields inherited from class net.minecraft.entity.ai.brain.task.Task
entryCondition
-
Constructor Summary
ConstructorDescriptionSupplementedTask
(Predicate<E> p_i231529_1_, Task<? super E> p_i231529_2_) SupplementedTask
(Map<MemoryModuleType<?>, MemoryModuleStatus> p_i231528_1_, Predicate<E> p_i231528_2_, Task<? super E> p_i231528_3_, boolean p_i231528_4_) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
canStillUse
(ServerWorld p_212834_1_, E p_212834_2_, long p_212834_3_) protected boolean
checkExtraStartConditions
(ServerWorld p_212832_1_, E p_212832_2_) private static Map<MemoryModuleType<?>,
MemoryModuleStatus> mergeMaps
(Map<MemoryModuleType<?>, MemoryModuleStatus> p_233943_0_, Map<MemoryModuleType<?>, MemoryModuleStatus> p_233943_1_) 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
doStop, getStatus, tickOrStop, tryStart
-
Field Details
-
predicate
-
wrappedBehavior
-
checkWhileRunningAlso
private final boolean checkWhileRunningAlso
-
-
Constructor Details
-
SupplementedTask
public SupplementedTask(Map<MemoryModuleType<?>, MemoryModuleStatus> p_i231528_1_, Predicate<E> p_i231528_2_, Task<? super E> p_i231528_3_, boolean p_i231528_4_) -
SupplementedTask
-
-
Method Details
-
mergeMaps
private static Map<MemoryModuleType<?>,MemoryModuleStatus> mergeMaps(Map<MemoryModuleType<?>, MemoryModuleStatus> p_233943_0_, Map<MemoryModuleType<?>, MemoryModuleStatus> p_233943_1_) -
checkExtraStartConditions
- Overrides:
checkExtraStartConditions
in classTask<E extends LivingEntity>
-
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>
-