Class Events.VarChange

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

public static final class Events.VarChange extends Object
A watched varp or varbit changed between two readable ticks.
  • Field Details

    • kind

      public final VarRegistry.Kind kind
      Varp or varbit.
    • id

      public final int id
      The id watched.
    • previous

      public final int previous
      The value on the previous readable tick.
    • current

      public final int current
      The new value.
    • tick

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

    • VarChange

      public VarChange(VarRegistry.Kind kind, int id, int previous, int current, int tick)
      Parameters:
      kind - varp or varbit
      id - the id
      previous - previous value
      current - new value
      tick - game tick
  • Method Details