# CustomModelDataHelper

`com.jsmacrosce.jsmacros.client.api.helper.inventory.CustomModelDataHelper`

**Since:** 2.3.0

Reads the four indexed lists resource packs can use to select or tint item models.  
```js
const data = Player.getPlayer()?.getMainHand().getComponents().getCustomModelData();  
if (data != null) {
  for (const label of data.getStrings()) Chat.log(label);  
}
```

## Methods

### getColors {#com.jsmacrosce.jsmacros.client.api.helper.inventory.CustomModelDataHelper_getColors-}

```js
getColors(): List<Integer>
```

**Returns:** the packed RGB colors in component order

### getFlags {#com.jsmacrosce.jsmacros.client.api.helper.inventory.CustomModelDataHelper_getFlags-}

```js
getFlags(): List<Boolean>
```

**Returns:** the boolean flags in component order

### getFloats {#com.jsmacrosce.jsmacros.client.api.helper.inventory.CustomModelDataHelper_getFloats-}

```js
getFloats(): List<Float>
```

**Returns:** the numeric values in component order

### getStrings {#com.jsmacrosce.jsmacros.client.api.helper.inventory.CustomModelDataHelper_getStrings-}

```js
getStrings(): List<String>
```

**Returns:** the strings in component order
