runelite-api: expose item model information

This commit is contained in:
Ron Young
2019-08-20 20:45:35 -05:00
committed by Adam
parent 172b30dc42
commit 65121f2704

View File

@@ -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();
}