Package net.citizensnpcs.api.ai
Interface AttackStrategy
public interface AttackStrategy
-
Method Summary
Modifier and TypeMethodDescriptionboolean
handle
(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. Returnstrue
if 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
-