Class Events.Needs

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

public static final class Events.Needs extends Object
What one poll should read; anything not needed is skipped so an idle facade costs nothing.
  • Field Details

    • projectiles

      public final boolean projectiles
      Read the projectile list.
    • hitsplats

      public final boolean hitsplats
      Poll hitsplats.
    • npcAnimations

      public final boolean npcAnimations
      Read NPC animations.
    • localPlayer

      public final boolean localPlayer
      Read the local player (animation, hitpoints, tile).
    • graphics

      public final boolean graphics
      Read the graphics list.
    • chat

      public final boolean chat
      Read the chat list.
    • varbits

      public final Set<Integer> varbits
      Varbit ids to read.
    • varps

      public final Set<Integer> varps
      Varp ids to read.
  • Constructor Details

    • Needs

      public Needs(boolean projectiles, boolean hitsplats, boolean npcAnimations, boolean localPlayer, boolean graphics, boolean chat, Set<Integer> varbits, Set<Integer> varps)
      Parameters:
      projectiles - read projectiles
      hitsplats - poll hitsplats
      npcAnimations - read NPC animations
      localPlayer - read the local player
      graphics - read graphics
      chat - read chat
      varbits - varbit ids (null: none)
      varps - varp ids (null: none)
  • Method Details

    • nothing

      public boolean nothing()
      Returns:
      whether nothing at all needs reading