Class OnHitZombieEvent

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

public class OnHitZombieEvent extends Object implements LuaEvent
Triggered when IsoZombie was hit by IsoGameCharacter.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final zombie.characters.IsoGameCharacter
    Instance of character attacking zombie.
    final zombie.characters.BodyDamage.BodyPartType
    Body part that has been hit.
    final zombie.inventory.types.HandWeapon
    Weapon used to hit zombie.
    final zombie.characters.IsoZombie
    Instance of zombie being attacked.
  • Constructor Summary

    Constructors
    Constructor
    Description
    OnHitZombieEvent(zombie.characters.IsoZombie zombie, zombie.characters.IsoGameCharacter attacker, zombie.characters.BodyDamage.BodyPartType target, zombie.inventory.types.HandWeapon weapon)
     
  • 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

    • zombie

      public final zombie.characters.IsoZombie zombie
      Instance of zombie being attacked.
    • attacker

      public final zombie.characters.IsoGameCharacter attacker
      Instance of character attacking zombie.
    • target

      public final zombie.characters.BodyDamage.BodyPartType target
      Body part that has been hit.
    • weapon

      public final zombie.inventory.types.HandWeapon weapon
      Weapon used to hit zombie.
  • Constructor Details

    • OnHitZombieEvent

      public OnHitZombieEvent(zombie.characters.IsoZombie zombie, zombie.characters.IsoGameCharacter attacker, zombie.characters.BodyDamage.BodyPartType target, zombie.inventory.types.HandWeapon weapon)