Collectible Item Pool Type
Hierarchy
-
Feature
↳
CollectibleItemPoolType
Methods
getCollectibleItemPoolType
▸ getCollectibleItemPoolType(collectible
): ItemPoolType
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
Name | Type |
---|---|
collectible | EntityPickup |
Returns
ItemPoolType
Defined in
packages/isaacscript-common/src/classes/features/other/CollectibleItemPoolType.ts:68