Class DamageEvent

All Implemented Interfaces:
Serializable, Cloneable, HasValue, Notification

public final class DamageEvent extends AbstractDamageEvent
ValueEvent.getValue() damage has been dealt to the GameEvent.getTarget() by the GameEvent.getSource().

AbstractDamageEvent.getDamageType() includes the kind of damage.

See Also:
  • Constructor Details

    • DamageEvent

      public DamageEvent(GameContext context, Entity victim, Entity source, int damage, EnumSet<com.hiddenswitch.spellsource.rpc.Spellsource.DamageTypeMessage.DamageType> damageType)