public class StartAttacking<E extends Mob>
extends Behavior<E>
att | |
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_R2.BehaviorAttackTargetSet |
Field summary
Modifier and Type | Field | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
private final Predicate<E> |
| ||||||||||
private final Function<E, Optional<? extends LivingEntity>> |
|
Constructor summary
Modifier | Constructor |
---|---|
public | (Predicate<E> startCondition, Function<E, Optional<? extends LivingEntity>> targetGetter) |
public | (Function<E, Optional<? extends LivingEntity>> targetGetter) |
Method summary
Modifier and Type | Method | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
protected boolean |
| ||||||||||
protected void |
| ||||||||||
private void |
|