Class Events.ProjectileEvent

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

public static final class Events.ProjectileEvent extends Object
A projectile that appeared since the previous tick. Fired once per projectile.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final int
    Client cycle it lands on.
    final int
    The projectile's id in this server's numbering.
    final int
    Client cycle it was launched on.
    final net.runelite.api.Actor
    The target, or null when it has none or it did not resolve.
    final Boolean
    TRUE when the target is the local player, FALSE when it is someone else, null when there is no resolved target (a ground-targeted projectile, or a target that could not be read): null is not "not at me".
    final int
    The game tick it was seen on (-1 when the tick could not be read).
  • Constructor Summary

    Constructors
    Constructor
    Description
    ProjectileEvent(int id, int startCycle, int endCycle, net.runelite.api.Actor target, Boolean targetsLocalPlayer, int tick)
     
  • 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

    • id

      public final int id
      The projectile's id in this server's numbering.
    • startCycle

      public final int startCycle
      Client cycle it was launched on.
    • endCycle

      public final int endCycle
      Client cycle it lands on.
    • target

      public final net.runelite.api.Actor target
      The target, or null when it has none or it did not resolve. Valid only during dispatch.
    • targetsLocalPlayer

      public final Boolean targetsLocalPlayer
      TRUE when the target is the local player, FALSE when it is someone else, null when there is no resolved target (a ground-targeted projectile, or a target that could not be read): null is not "not at me".
    • tick

      public final int tick
      The game tick it was seen on (-1 when the tick could not be read).
  • Constructor Details

    • ProjectileEvent

      public ProjectileEvent(int id, int startCycle, int endCycle, net.runelite.api.Actor target, Boolean targetsLocalPlayer, int tick)
      Parameters:
      id - projectile id
      startCycle - launch cycle
      endCycle - landing cycle
      target - target or null
      targetsLocalPlayer - see targetsLocalPlayer
      tick - game tick
  • Method Details