From 65121f2704b86a27e0116cdde090ab48028d8e9f Mon Sep 17 00:00:00 2001 From: Ron Young Date: Tue, 20 Aug 2019 20:45:35 -0500 Subject: [PATCH] runelite-api: expose item model information --- .../net/runelite/api/ItemComposition.java | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/runelite-api/src/main/java/net/runelite/api/ItemComposition.java b/runelite-api/src/main/java/net/runelite/api/ItemComposition.java index 48135c07a3..16d7876c67 100644 --- a/runelite-api/src/main/java/net/runelite/api/ItemComposition.java +++ b/runelite-api/src/main/java/net/runelite/api/ItemComposition.java @@ -24,6 +24,8 @@ */ package net.runelite.api; +import javax.annotation.Nullable; + /** * Represents the template of a specific item type. */ @@ -138,4 +140,29 @@ public interface ItemComposition * default value. */ void resetShiftClickActionIndex(); + + /** + * Gets the model ID of the inventory item. + * + * @return the model ID + */ + int getInventoryModel(); + + /** + * Since the client reuses item models, it stores colors that can be replaced. + * This returns what colors the item model will be replaced with. + * + * @return the colors to replace with + */ + @Nullable + short[] getColorToReplaceWith(); + + /** + * Since the client reuses item models, it stores textures that can be replaced. + * This returns what textures the item model will be replaced with. + * + * @return the textures to replace with + */ + @Nullable + short[] getTextureToReplaceWith(); }