Task.Status
Modifier and Type | Field and Description |
---|---|
private Predicate<LivingEntity> |
alternativeCondition |
requiredMemoryStates
Constructor and Description |
---|
ForgetAttackTargetTask() |
ForgetAttackTargetTask(Predicate<LivingEntity> alternativeCondition) |
Modifier and Type | Method and Description |
---|---|
private static <E extends LivingEntity> |
cannotReachTarget(E entity) |
private void |
forgetAttackTarget(E entity) |
private LivingEntity |
getAttackTarget(E entity) |
private boolean |
isAttackTargetDead(E entity) |
private boolean |
isAttackTargetInAnotherWorld(E entity) |
protected void |
run(ServerWorld serverWorld,
E e,
long long2) |
finishRunning, getStatus, isTimeLimitExceeded, keepRunning, shouldKeepRunning, shouldRun, stop, tick, toString, tryStarting
private final Predicate<LivingEntity> alternativeCondition
public ForgetAttackTargetTask(Predicate<LivingEntity> alternativeCondition)
public ForgetAttackTargetTask()
protected void run(ServerWorld serverWorld, E e, long long2)
private boolean isAttackTargetInAnotherWorld(E entity)
private LivingEntity getAttackTarget(E entity)
private static <E extends LivingEntity> boolean cannotReachTarget(E entity)
private boolean isAttackTargetDead(E entity)
private void forgetAttackTarget(E entity)