> For the complete documentation index, see [llms.txt](https://team-compliance.gitbook.io/library-of-isaac/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://team-compliance.gitbook.io/library-of-isaac/modules/itempool.md).

# ItemPool

## Overview

| Return Value | Function                                                                                                                                                                                                                                                       |
| ------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| boolean      | [IsCollectibleInItemPool](#iscollectibleinitempool)([`CollectibleType`](https://wofsauge.github.io/IsaacDocs/rep/enums/CollectibleType.html) collectibleType, [`ItemPoolType`](https://wofsauge.github.io/IsaacDocs/rep/enums/ItemPoolType.html) itemPoolType) |

## Functions

### IsCollectibleInItemPool()

`boolean IsCollectibleInItemPool(`[`CollectibleType`](https://wofsauge.github.io/IsaacDocs/rep/enums/CollectibleType.html)`collectibleType,`[`ItemPoolType`](https://wofsauge.github.io/IsaacDocs/rep/enums/ItemPoolType.html) `itemPoolType)`

Helper function to see if the given collectible is still present in the given item pool. If the collectible is non-offensive, any Tainted Losts will be temporarily changed to Isaac and then changed back. (This is because Tainted Lost is not able to retrieve non-offensive collectibles from item pools). Under the hood, this function works by using the ItemPool.AddRoomBlacklist method to blacklist every collectible except for the one provided.
