Class OnWeaponHitXpEvent

java.lang.Object
com.avrix.events.Event
com.avrix.events.OnWeaponHitXpEvent

public abstract class OnWeaponHitXpEvent extends Event
Triggered when a player is gaining XP for a successful hit.
  • Constructor Details

    • OnWeaponHitXpEvent

      public OnWeaponHitXpEvent()
  • Method Details

    • getEventName

      public String getEventName()
      Getting the event name
      Specified by:
      getEventName in class Event
      Returns:
      name of the event being implemented
    • handleEvent

      public abstract void handleEvent(zombie.characters.IsoPlayer player, zombie.inventory.types.HandWeapon handWeapon, zombie.characters.IsoGameCharacter character, Float damageSplit)
      Called Event Handling Method
      Parameters:
      player - The player who's wielding the weapon.
      handWeapon - The hand weapon used to perform the attack.
      character - The character who's being hit.
      damageSplit - The damage split of the hit.