Class StopAttackingIfTargetInvalid
java.lang.Object
net.minecraft.world.entity.ai.behavior.StopAttackingIfTargetInvalid
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <E extends Mob>
BehaviorControl<E>create()
static <E extends Mob>
BehaviorControl<E>create
(BiConsumer<E, LivingEntity> p_260165_) static <E extends Mob>
BehaviorControl<E>create
(Predicate<LivingEntity> p_259762_) static <E extends Mob>
BehaviorControl<E>create
(Predicate<LivingEntity> p_260357_, BiConsumer<E, LivingEntity> p_259568_, boolean p_260319_) private static boolean
isTiredOfTryingToReachTarget
(LivingEntity p_259416_, Optional<Long> p_259377_)
-
Field Details
-
TIMEOUT_TO_GET_WITHIN_ATTACK_RANGE
private static final int TIMEOUT_TO_GET_WITHIN_ATTACK_RANGE- See Also:
-
-
Constructor Details
-
StopAttackingIfTargetInvalid
public StopAttackingIfTargetInvalid()
-
-
Method Details
-
create
-
create
-
create
-
create
public static <E extends Mob> BehaviorControl<E> create(Predicate<LivingEntity> p_260357_, BiConsumer<E, LivingEntity> p_259568_, boolean p_260319_) -
isTiredOfTryingToReachTarget
private static boolean isTiredOfTryingToReachTarget(LivingEntity p_259416_, Optional<Long> p_259377_)
-