From d110a3c28e00caf7cb4168009fe8ee2ccc425c4d Mon Sep 17 00:00:00 2001 From: Adam Date: Thu, 5 May 2022 19:19:55 -0400 Subject: [PATCH] api: add object composition map setters --- .../java/net/runelite/api/ObjectComposition.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/runelite-api/src/main/java/net/runelite/api/ObjectComposition.java b/runelite-api/src/main/java/net/runelite/api/ObjectComposition.java index 1aa69b6082..1587022906 100644 --- a/runelite-api/src/main/java/net/runelite/api/ObjectComposition.java +++ b/runelite-api/src/main/java/net/runelite/api/ObjectComposition.java @@ -56,12 +56,26 @@ public interface ObjectComposition extends ParamHolder */ int getMapSceneId(); + /** + * Set the map scene index into the {@link Client#getMapScene()} + * array, or -1 if it has no map scene icon + * @param mapSceneId + */ + void setMapSceneId(int mapSceneId); + /** * Gets the index of this object in the {@link Client#getMapIcons()} * array, or -1 if it has no full map icon */ int getMapIconId(); + /** + * Set the index of the object in the {@link Client#getMapIcons()} + * array, or -1 if it has no map icon + * @param mapIconId + */ + void setMapIconId(int mapIconId); + /** * Get the {@link ObjectID}s of objects this can transform into, depending * on a {@link Varbits} or {@link VarPlayer}