> For the complete documentation index, see [llms.txt](https://docs.moddingofisaac.com/ab_p/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.moddingofisaac.com/ab_p/beta/docs/itemconfig_config.md).

# Class "ItemConfig::Config"

## Functions

### GetCard () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/itemconfig_config.md){: .abp .tooltip .badge }

#### [Card](https://github.com/wofsauge/IsaacDocs/tree/420a6aaa54ea230461fb26e61297c068492684de/beta/ItemConfig_Card/README.md) GetCard ( int ID ) {: .copyable aria-label='Functions' }

### GetCards () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/itemconfig_config.md){: .abp .tooltip .badge }

#### CardList GetCards ( ) {: .copyable aria-label='Functions' }

### GetCollectible () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/itemconfig_config.md){: .abp .tooltip .badge }

#### [Item](https://github.com/wofsauge/IsaacDocs/tree/420a6aaa54ea230461fb26e61297c068492684de/beta/ItemConfig_Item/README.md) GetCollectible ( int ID ) {: .copyable aria-label='Functions' }

Returns the Itemobject of a given CollectibleID.

???- example "Example Code" This Code gets the highest possible collectibleid including modded items. It uses the Binary Search algorithm to do it. Using GetCollectible(): (**recommended!**)

```lua
    function GetMaxCollectibleID()
    local id = CollectibleType.NUM_COLLECTIBLES-1
    local step = 16
    while step &gt; 0 do
    if Isaac.GetItemConfig():GetCollectible(id+step) ~= nil then
    id = id + step
    else
    step = step // 2
    end
    end

    return id
    end
```

````
Using GetCollectibles(): (**Crashes on Mac OS)**
```lua 
function GetMaxCollectibleID()
return Isaac.GetItemConfig():GetCollectibles().Size -1
end

```
````

### GetCollectibles () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/itemconfig_config.md){: .abp .tooltip .badge }

#### ItemList GetCollectibles ( ) {: .copyable aria-label='Functions' }

Returns the List of all Collectibles.

???- example "Example Code" This Code gets the highest possible collectibleid including modded items.

```lua
    function GetMaxCollectibleID()
    return Isaac.GetItemConfig():GetCollectibles().Size -1
    end
```

???+ bug "Bugs" The objects stored in the returned list cant be accessed correctly and are therefore useless.

### GetCostumes () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/itemconfig_config.md){: .abp .tooltip .badge }

#### CostumeList GetCostumes ( ) {: .copyable aria-label='Functions' }

???+ bug "Bugs" The Vector/Table returned by this function is always empty!

### GetNullItem () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/itemconfig_config.md){: .abp .tooltip .badge }

#### [Item](https://github.com/wofsauge/IsaacDocs/tree/420a6aaa54ea230461fb26e61297c068492684de/beta/ItemConfig_Item/README.md) GetNullItem ( int ID ) {: .copyable aria-label='Functions' }

### GetNullItems () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/itemconfig_config.md){: .abp .tooltip .badge }

#### ItemList GetNullItems ( ) {: .copyable aria-label='Functions' }

### GetPillEffect () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/itemconfig_config.md){: .abp .tooltip .badge }

#### [PillEffect](https://github.com/wofsauge/IsaacDocs/tree/420a6aaa54ea230461fb26e61297c068492684de/beta/ItemConfig_PillEffect/README.md) GetPillEffect ( [PillEffect](https://github.com/wofsauge/IsaacDocs/tree/420a6aaa54ea230461fb26e61297c068492684de/beta/ItemConfig_PillEffect/README.md) PillEffectID ) {: .copyable aria-label='Functions' }

### GetPillEffects () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/itemconfig_config.md){: .abp .tooltip .badge }

#### PillList GetPillEffects ( ) {: .copyable aria-label='Functions' }

### GetTrinket () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/itemconfig_config.md){: .abp .tooltip .badge }

#### [Item](https://github.com/wofsauge/IsaacDocs/tree/420a6aaa54ea230461fb26e61297c068492684de/beta/ItemConfig_Item/README.md) GetTrinket ( int ID ) {: .copyable aria-label='Functions' }

### GetTrinkets () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/itemconfig_config.md){: .abp .tooltip .badge }

#### ItemList GetTrinkets ( ) {: .copyable aria-label='Functions' }

### IsValidCollectible () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/itemconfig_config.md){: .static .tooltip .badge } [ ](/ab_p/beta/docs/itemconfig_config.md){: .abp .tooltip .badge }

#### static boolean IsValidCollectible ( [CollectibleType](https://github.com/wofsauge/IsaacDocs/tree/420a6aaa54ea230461fb26e61297c068492684de/beta/enums/CollectibleType/README.md) ID ) {: .copyable aria-label='Functions' }

Function to check if a given item id is a valid collectible id (aka. this item exists). Returns **True** when it exists and **False** when it doesnt.

???- example "Example Code" This Code checks, if the item "Sad Onion" (ID: 1) exists.

```lua
    ItemConfig.Config.IsValidCollectible(1)
```

???+ bug "Bugs" This function returns false for modded items! Use itemConfig:GetCollectible() instead.

### ShouldAddCostumeOnPickup () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/itemconfig_config.md){: .static .tooltip .badge } [ ](/ab_p/beta/docs/itemconfig_config.md){: .abp .tooltip .badge }

#### static boolean ShouldAddCostumeOnPickup ( [Item](https://github.com/wofsauge/IsaacDocs/tree/420a6aaa54ea230461fb26e61297c068492684de/beta/ItemConfig_Item/README.md) Config ) {: .copyable aria-label='Functions' }
