Class GameObjects.ToaRewardsRoomChest

java.lang.Object
privbot.hooks.GameObjects.ToaRewardsRoomChest
Enclosing class:
GameObjects

public static final class GameObjects.ToaRewardsRoomChest extends Object
ToA / Tombs rewards-room anchor classifier (legacy WardenLootTask reference): first GameObject on the anchor scene tile, matching sarcophagus id, gate action on resolved composition (default Open).
  • Method Details

    • classify

      public static GameObjects.ToaRewardsRoomChest.Kind classify(net.runelite.api.Client client, GameObjects.ToaRewardsRoomChest.Config config)
      Classifies the sarcophagus on the anchor tile. Call on the client thread.
      Parameters:
      client - the client
      config - where to look
      Returns:
      PURPLE, REGULAR, or UNKNOWN when it cannot be read
    • firstGameObjectAtSceneTile

      public static net.runelite.api.GameObject firstGameObjectAtSceneTile(net.runelite.api.Client client, int sceneX, int sceneY)
      Parameters:
      client - the client (client thread)
      sceneX - scene x
      sceneY - scene y
      Returns:
      the first game object on that tile on the current plane, or null
    • compositionForGameObject

      public static net.runelite.api.ObjectComposition compositionForGameObject(net.runelite.api.Client client, net.runelite.api.GameObject gameObject, int objectId)
      Parameters:
      client - the client (client thread)
      gameObject - the object (may be null)
      objectId - its id, for the definition lookup
      Returns:
      the object's definition, transformed through its impostor when it has one; null when unreadable