net.minecraft.world.entity.ai.behavior

public class StartAttacking<E extends Mob>

extends Behavior<E>

bgb
net.minecraft.world.entity.ai.behavior.StartAttacking
net.minecraft.class_4824
net.minecraft.entity.ai.brain.task.UpdateAttackTargetTask
net.minecraft.src.C_633_
net.minecraft.world.entity.ai.behavior.BehaviorAttackTargetSet

Field summary

Modifier and TypeField
private final Predicate<E>
a
canAttackPredicate
field_22325
startCondition
f_24190_
private final Function<E, Optional<? extends LivingEntity>>
d
targetFinderFunction
field_22326
targetGetter
f_24191_

Constructor summary

ModifierConstructor
public (Predicate<E> startCondition, Function<E, Optional<? extends LivingEntity>> targetGetter)
public (Predicate<E> startCondition, Function<E, Optional<? extends LivingEntity>> targetGetter, int duration)
public (Function<E, Optional<? extends LivingEntity>> targetGetter)

Method summary

Modifier and TypeMethod
protected boolean
a(agg arg0, E arg1)
checkExtraStartConditions(ServerLevel arg0, E arg1)
method_24613(class_3218 arg0, E arg1)
shouldRun(ServerWorld arg0, E arg1)
m_6114_(C_12_ p_24206_, E arg1)
protected void
a(agg arg0, E arg1, long arg2)
start(ServerLevel arg0, E arg1, long arg2)
method_24614(class_3218 arg0, E arg1, long arg2)
run(ServerWorld arg0, E arg1, long arg2)
m_6735_(C_12_ p_24209_, E p_24210_, long arg2)
public static <E extends Mob> void
a(E arg0, bcc arg1)
setAttackTarget(E arg0, LivingEntity arg1)
method_24612(E arg0, class_1309 arg1)
updateAttackTarget(E entity, LivingEntity target)
m_24213_(E p_24214_, C_524_ p_24215_)