runelite-api: expose item model information
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user