Class GraphicView

java.lang.Object
privbot.mechanics.GraphicView

public final class GraphicView extends Object
A detached copy of one graphics object (a ground effect such as a falling rock or a pool) taken at the tick of a ThreatSnapshot. Immutable. It proves the graphic was drawn at tile() when the snapshot was read; it says nothing about later ticks, so read a new snapshot to ask whether it is still there.

Pure data: no client calls, safe on any thread.

  • Constructor Details

    • GraphicView

      public GraphicView(int id, int startCycle, net.runelite.api.coords.WorldPoint tile)
      Parameters:
      id - the graphic's id
      startCycle - the client cycle it started on
      tile - the world tile it is drawn on
  • Method Details

    • id

      public int id()
      Returns:
      the graphic's id
    • startCycle

      public int startCycle()
      Returns:
      the client cycle it started on
    • tile

      public net.runelite.api.coords.WorldPoint tile()
      Returns:
      the world tile it is drawn on
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object