Class OnWeaponHitXpEvent

java.lang.Object
io.pzstorm.storm.event.lua.OnWeaponHitXpEvent
All Implemented Interfaces:
LuaEvent, ZomboidEvent

public class OnWeaponHitXpEvent extends Object implements LuaEvent
Triggered when experience is earned by attacking with weapon.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final zombie.characters.IsoGameCharacter
    Player earning experience.
    final zombie.iso.IsoMovingObject
    Object being hit with weapon.
    final Float
    Either amount of damage or experience earned.
    final zombie.inventory.types.HandWeapon
    Weapon used to attack.
  • Constructor Summary

    Constructors
    Constructor
    Description
    OnWeaponHitXpEvent(zombie.characters.IsoGameCharacter player, zombie.inventory.types.HandWeapon weapon, zombie.iso.IsoMovingObject target, Float value)
     
  • Method Summary

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface io.pzstorm.storm.event.lua.LuaEvent

    getName, registerCallback
  • Field Details

    • player

      public final zombie.characters.IsoGameCharacter player
      Player earning experience.
    • weapon

      public final zombie.inventory.types.HandWeapon weapon
      Weapon used to attack.
    • target

      public final zombie.iso.IsoMovingObject target
      Object being hit with weapon.
    • value

      public final Float value
      Either amount of damage or experience earned.
  • Constructor Details

    • OnWeaponHitXpEvent

      public OnWeaponHitXpEvent(zombie.characters.IsoGameCharacter player, zombie.inventory.types.HandWeapon weapon, zombie.iso.IsoMovingObject target, Float value)