Class EndAttackTask
- java.lang.Object
-
- net.minecraft.entity.ai.brain.task.Task<LivingEntity>
-
- net.minecraft.entity.ai.brain.task.EndAttackTask
-
public class EndAttackTask extends Task<LivingEntity>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.minecraft.entity.ai.brain.task.Task
Task.Status
-
-
Field Summary
Fields Modifier and Type Field Description private int
celebrateDuration
private java.util.function.BiPredicate<LivingEntity,LivingEntity>
dancePredicate
-
Fields inherited from class net.minecraft.entity.ai.brain.task.Task
entryCondition
-
-
Constructor Summary
Constructors Constructor Description EndAttackTask(int p_i231538_1_, java.util.function.BiPredicate<LivingEntity,LivingEntity> p_i231538_2_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
checkExtraStartConditions(ServerWorld p_212832_1_, LivingEntity p_212832_2_)
private LivingEntity
getAttackTarget(LivingEntity p_233980_1_)
protected void
start(ServerWorld p_212831_1_, LivingEntity 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 Detail
-
celebrateDuration
private final int celebrateDuration
-
dancePredicate
private final java.util.function.BiPredicate<LivingEntity,LivingEntity> dancePredicate
-
-
Constructor Detail
-
EndAttackTask
public EndAttackTask(int p_i231538_1_, java.util.function.BiPredicate<LivingEntity,LivingEntity> p_i231538_2_)
-
-
Method Detail
-
checkExtraStartConditions
protected boolean checkExtraStartConditions(ServerWorld p_212832_1_, LivingEntity p_212832_2_)
- Overrides:
checkExtraStartConditions
in classTask<LivingEntity>
-
start
protected void start(ServerWorld p_212831_1_, LivingEntity p_212831_2_, long p_212831_3_)
- Overrides:
start
in classTask<LivingEntity>
-
getAttackTarget
private LivingEntity getAttackTarget(LivingEntity p_233980_1_)
-
-