Class GameObjects.ToaRewardsRoomChest
java.lang.Object
privbot.hooks.GameObjects.ToaRewardsRoomChest
- Enclosing class:
GameObjects
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).-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classWhere the anchor sarcophagus is and which action marks a purple.static enumWhat the anchor sarcophagus shows. -
Method Summary
Modifier and TypeMethodDescriptionclassify(net.runelite.api.Client client, GameObjects.ToaRewardsRoomChest.Config config) Classifies the sarcophagus on the anchor tile.static net.runelite.api.ObjectCompositioncompositionForGameObject(net.runelite.api.Client client, net.runelite.api.GameObject gameObject, int objectId) static net.runelite.api.GameObjectfirstGameObjectAtSceneTile(net.runelite.api.Client client, int sceneX, int sceneY)
-
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 clientconfig- 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 xsceneY- 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
-