Class ForgetAttackTargetTask<E extends MobEntity>
java.lang.Object
net.minecraft.entity.ai.brain.task.Task<E>
net.minecraft.entity.ai.brain.task.ForgetAttackTargetTask<E>
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.brain.task.Task
Task.Status
-
Field Summary
Fields inherited from class net.minecraft.entity.ai.brain.task.Task
entryCondition
-
Constructor Summary
ConstructorDescriptionForgetAttackTargetTask
(Function<E, Optional<? extends LivingEntity>> p_i231536_1_) ForgetAttackTargetTask
(Predicate<E> p_i231537_1_, Function<E, Optional<? extends LivingEntity>> p_i231537_2_) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
checkExtraStartConditions
(ServerWorld p_212832_1_, E p_212832_2_) private void
setAttackTarget
(E p_233976_1_, LivingEntity p_233976_2_) protected void
start
(ServerWorld p_212831_1_, E p_212831_2_, long p_212831_3_) Methods inherited from class net.minecraft.entity.ai.brain.task.Task
canStillUse, doStop, getStatus, stop, tick, tickOrStop, timedOut, toString, tryStart
-
Field Details
-
canAttackPredicate
-
targetFinderFunction
-
-
Constructor Details
-
ForgetAttackTargetTask
-
ForgetAttackTargetTask
-
-
Method Details