Collectible Item Pool Type
Classes
Section titled “Classes”CollectibleItemPoolType
Section titled “CollectibleItemPoolType”Defined in: packages/isaacscript-common/src/classes/features/other/CollectibleItemPoolType.ts:19
Extends
Section titled “Extends”Feature
Methods
Section titled “Methods”getCollectibleItemPoolType()
Section titled “getCollectibleItemPoolType()”getCollectibleItemPoolType(
collectible):ItemPoolType
Defined in: packages/isaacscript-common/src/classes/features/other/CollectibleItemPoolType.ts:68
Helper function to get the item pool type that a given collectible came from. Since there is no
native method in the API to get this, we listen in the POST_PICKUP_INIT callback for
collectibles, use the ItemPool.GetLastPool method, and then assume that the collectible
matches.
In order to use this function, you must upgrade your mod with
ISCFeature.COLLECTIBLE_ITEM_POOL_TYPE.
Parameters
Section titled “Parameters”collectible
Section titled “collectible”EntityPickup
Returns
Section titled “Returns”ItemPoolType
