Package io.pzstorm.storm.event.lua
Class OnWeaponHitXpEvent
java.lang.Object
io.pzstorm.storm.event.lua.OnWeaponHitXpEvent
- All Implemented Interfaces:
LuaEvent,ZomboidEvent
Triggered when experience is earned by attacking with weapon.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal zombie.characters.IsoGameCharacterPlayer earning experience.final zombie.iso.IsoMovingObjectObject being hit with weapon.final FloatEither amount of damage or experience earned.final zombie.inventory.types.HandWeaponWeapon used to attack. -
Constructor Summary
ConstructorsConstructorDescriptionOnWeaponHitXpEvent(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, waitMethods inherited from interface io.pzstorm.storm.event.lua.LuaEvent
getName, registerCallback
-
Field Details
-
player
public final zombie.characters.IsoGameCharacter playerPlayer earning experience. -
weapon
public final zombie.inventory.types.HandWeapon weaponWeapon used to attack. -
target
public final zombie.iso.IsoMovingObject targetObject being hit with weapon. -
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)
-