Package net.citizensnpcs.api.ai
Interface AttackStrategy
public interface AttackStrategy
- 
Method SummaryModifier and TypeMethodDescriptionbooleanhandle(LivingEntity attacker, LivingEntity target) Tries to attack the supplied target from the supplied attacker.
- 
Method Details- 
handleTries 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 use
- target- The target to attack
- Returns:
- Whether the attack was handled
 
 
-