Package net.runelite.api
Interface PlayerComposition
-
public interface PlayerComposition
Represents the template of a player.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getEquipmentId(KitType type)
Gets the equipment ID of a particular slot.int[]
getEquipmentIds()
Gets an array of IDs related to equipment slots.int
getKitId(KitType type)
Gets the kit ID of a particular slot.boolean
isFemale()
Checks if the player is female.void
setHash()
Update the cached hash value for player equipment Used to cache the player models based on equipment.void
setTransformedNpcId(int id)
-
-
-
Method Detail
-
isFemale
boolean isFemale()
Checks if the player is female.- Returns:
- true if the player is female
-
getEquipmentIds
int[] getEquipmentIds()
Gets an array of IDs related to equipment slots.If the ID for a specific slot is between 256 and 512, subtracting 256 will result in the kit ID. Values above 512 indicate an item and can be converted to the item ID by subtracting 512.
- Returns:
- the equipment IDs
-
getEquipmentId
int getEquipmentId(KitType type)
Gets the equipment ID of a particular slot.- Parameters:
type
- equipment slot- Returns:
- the equipment ID
-
getKitId
int getKitId(KitType type)
Gets the kit ID of a particular slot.- Parameters:
type
- equipment slot- Returns:
- the kit ID
-
setHash
@VisibleForDevtools void setHash()
Update the cached hash value for player equipment Used to cache the player models based on equipment.
-
setTransformedNpcId
@VisibleForDevtools void setTransformedNpcId(int id)
-
-