net.minecraft.world.entity.ai.behavior

public class StopAttackingIfTargetInvalid<E extends Mob>

extends Behavior<E>

atv
net.minecraft.world.entity.ai.behavior.StopAttackingIfTargetInvalid
net.minecraft.class_4828
net.minecraft.entity.ai.brain.task.ForgetAttackTargetTask
net.minecraft.entity.ai.brain.task.FindNewAttackTargetTask
net.minecraft.server.v1_16_R2.BehaviorAttackTargetForget

Field summary

Modifier and TypeField
private final Predicate<LivingEntity>
b
stopAttackingWhen
field_22329
alternativeCondition
field_233981_b_

Constructor summary

ModifierConstructor
public (Predicate<LivingEntity> alternativeCondition)
public ()

Method summary

Modifier and TypeMethod
protected void
a(aag arg0, E arg1, long arg2)
start(ServerLevel arg0, E arg1, long arg2)
method_24623(class_3218 arg0, E arg1, long arg2)
run(ServerWorld arg0, E arg1, long arg2)
func_212831_a_(ServerWorld arg0, E arg1, long arg2)
private boolean
a(E arg0)
isCurrentTargetInDifferentLevel(E arg0)
method_24622(E arg0)
isAttackTargetInAnotherWorld(E entity)
func_233983_a_(E arg0)
private LivingEntity
b(E arg0)
getAttackTarget(E arg0)
method_24625(E arg0)
getAttackTarget(E entity)
func_233985_b_(E arg0)
private static <E extends LivingEntity> boolean
a(E arg0)
isTiredOfTryingToReachTarget(E arg0)
method_24621(E arg0)
cannotReachTarget(E entity)
func_233982_a_(E arg0)
private boolean
c(E arg0)
isCurrentTargetDeadOrRemoved(E arg0)
method_24626(E arg0)
isAttackTargetDead(E entity)
func_233986_c_(E arg0)
private void
d(E arg0)
clearAttackTarget(E arg0)
method_24627(E arg0)
forgetAttackTarget(E entity)
func_233987_d_(E arg0)