# 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.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://team-compliance.gitbook.io/library-of-isaac/modules/itempool.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
