Class Events.HitsplatEvent

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

public static final class Events.HitsplatEvent extends Object
A hitsplat that landed since the previous tick.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final net.runelite.api.Actor
    The actor hit; valid only during dispatch (may be null for a forwarded event without one).
    final String
    The actor's name when it could be read, else null.
    final int
    The displayed damage.
    final boolean
    Whether the actor is the local player.
    final boolean
    True when this facade polled it; false when it came from a forwarded HitsplatApplied.
    final int
    The server's style code, or -1 when unknown (always -1 for forwarded events).
    final int
    The game tick it was seen on (-1 when unknown).
    final int
    The hitsplat type (server numbering).
  • Constructor Summary

    Constructors
    Constructor
    Description
    HitsplatEvent(net.runelite.api.Actor actor, boolean onLocalPlayer, String actorName, int amount, int type, int style, int tick, boolean polled)
     
  • 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

    • actor

      public final net.runelite.api.Actor actor
      The actor hit; valid only during dispatch (may be null for a forwarded event without one).
    • onLocalPlayer

      public final boolean onLocalPlayer
      Whether the actor is the local player.
    • actorName

      public final String actorName
      The actor's name when it could be read, else null.
    • amount

      public final int amount
      The displayed damage.
    • type

      public final int type
      The hitsplat type (server numbering).
    • style

      public final int style
      The server's style code, or -1 when unknown (always -1 for forwarded events).
    • tick

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

      public final boolean polled
      True when this facade polled it; false when it came from a forwarded HitsplatApplied.
  • Constructor Details

    • HitsplatEvent

      public HitsplatEvent(net.runelite.api.Actor actor, boolean onLocalPlayer, String actorName, int amount, int type, int style, int tick, boolean polled)
      Parameters:
      actor - the actor hit
      onLocalPlayer - whether it is the local player
      actorName - its name, or null
      amount - displayed damage
      type - hitsplat type
      style - style code, -1 unknown
      tick - game tick
      polled - whether it was polled
  • Method Details