Interface CombatEntityHitListener

All Superinterfaces:
java.util.EventListener
All Known Subinterfaces:
CombatEntityListener
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface
public interface CombatEntityHitListener
extends java.util.EventListener
This listener provides callbacks for when an ICombatEntity was hit.
See Also:
ICombatEntity.hit(int), ICombatEntity.hit(int, de.gurkenlabs.litiengine.abilities.Ability)
  • Method Summary

    Modifier and TypeMethodDescription
    voidhit​(EntityHitEvent event)
    This method is called whenever a ICombatEntity was hit.
  • Method Details

    • hit

      void hit​(EntityHitEvent event)
      This method is called whenever a ICombatEntity was hit.
      Parameters:
      event - The event data that contains information about the entity, for how much it was hit and the ability that caused the hit.