net.minecraft.world.entity.ai.behavior

public class StartAttacking<E extends Mob>

extends Behavior<E>

asi
net.minecraft.world.entity.ai.behavior.StartAttacking
net.minecraft.class_4824
net.minecraft.entity.ai.brain.task.UpdateAttackTargetTask
net.minecraft.entity.ai.brain.task.ForgetAttackTargetTask
net.minecraft.server.v1_16_R1.BehaviorAttackTargetSet

Field summary

Modifier and TypeField
private final Predicate<E>
b
canAttackPredicate
field_22325
startCondition
field_233973_b_
private final Function<E, Optional<? extends LivingEntity>>
c
targetFinderFunction
field_22326
targetGetter
field_233974_c_

Constructor summary

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

Method summary

Modifier and TypeMethod
protected boolean
a(zd arg0, E arg1)
checkExtraStartConditions(ServerLevel arg0, E arg1)
method_24613(class_3218 arg0, E arg1)
shouldRun(ServerWorld arg0, E arg1)
func_212832_a_(ServerWorld arg0, E arg1)
protected void
a(zd 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)
func_212831_a_(ServerWorld arg0, E arg1, long arg2)
private void
a(E arg0, aoy arg1)
setAttackTarget(E arg0, LivingEntity arg1)
method_24612(E arg0, class_1309 arg1)
updateAttackTarget(E entity, LivingEntity target)
func_233976_a_(E arg0, LivingEntity arg1)