public interface AttackStrategy
Modifier and Type | Method and Description |
---|---|
boolean |
handle(org.bukkit.entity.LivingEntity attacker,
org.bukkit.entity.LivingEntity target)
Tries to attack the supplied target from the supplied attacker.
|
boolean handle(org.bukkit.entity.LivingEntity attacker, org.bukkit.entity.LivingEntity target)
true
if the attack was
handled, or false if the default attack strategy should be used.attacker
- The entity attacker to usetarget
- The target to attackCopyright © 2021. All rights reserved.