Interface AttackStrategy


public interface AttackStrategy
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    handle(LivingEntity attacker, LivingEntity target)
    Tries to attack the supplied target from the supplied attacker.
  • Method Details

    • handle

      boolean handle(LivingEntity attacker, LivingEntity target)
      Tries to attack the supplied target from the supplied attacker. Returns true if 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