Package net.citizensnpcs.api.ai
Interface AttackStrategy
public interface AttackStrategy
-
Method Summary
Modifier and TypeMethodDescriptionbooleanhandle(LivingEntity attacker, LivingEntity target) Tries to attack the supplied target from the supplied attacker.
-
Method Details
-
handle
Tries to attack the supplied target from the supplied attacker. Returnstrueif the attack was handled, or false if the default attack strategy should be used.- Parameters:
attacker- The entity attacker to usetarget- The target to attack- Returns:
- Whether the attack was handled
-