Class Events.DeathEvent

java.lang.Object
privbot.hooks.Events.DeathEvent
Enclosing class:
Events

public static final class Events.DeathEvent extends Object
The local player died. Fired once per death, detected by polling.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final String
    What showed it: "hitpoints 0" or "animation <id>".
    final int
    The game tick it was detected on (-1 when unknown).
    final net.runelite.api.coords.WorldPoint
    Where the player was on the last readable tick, or null.
  • Constructor Summary

    Constructors
    Constructor
    Description
    DeathEvent(int tick, net.runelite.api.coords.WorldPoint tile, String cause)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • tick

      public final int tick
      The game tick it was detected on (-1 when unknown).
    • tile

      public final net.runelite.api.coords.WorldPoint tile
      Where the player was on the last readable tick, or null.
    • cause

      public final String cause
      What showed it: "hitpoints 0" or "animation <id>".
  • Constructor Details

    • DeathEvent

      public DeathEvent(int tick, net.runelite.api.coords.WorldPoint tile, String cause)
      Parameters:
      tick - game tick
      tile - last readable tile, or null
      cause - what showed the death
  • Method Details