Pickups Specific
Functions
Section titled “Functions”getBatteries()
Section titled “getBatteries()”getBatteries(
batterySubType?): readonlyEntityPickupBattery[]
Defined in: packages/isaacscript-common/src/functions/pickupsSpecific.ts:24
Helper function to get all of the battery entities in the room.
Parameters
Section titled “Parameters”batterySubType?
Section titled “batterySubType?”-1 | BatterySubType
Optional. If specified, will only get the batteries that match the sub-type. Default is -1, which matches every sub-type.
Returns
Section titled “Returns”readonly EntityPickupBattery[]
getBombPickups()
Section titled “getBombPickups()”getBombPickups(
bombSubType?): readonlyEntityPickupBomb[]
Defined in: packages/isaacscript-common/src/functions/pickupsSpecific.ts:40
Helper function to get all of the bomb entities in the room. (Specifically, this refers to bomb
pickups, not the EntityBomb class.)
Parameters
Section titled “Parameters”bombSubType?
Section titled “bombSubType?”-1 | BombSubType
Optional. If specified, will only get the bombs that match the sub-type. Default is -1, which matches every sub-type.
Returns
Section titled “Returns”readonly EntityPickupBomb[]
getCards()
Section titled “getCards()”getCards(
cardType?): readonlyEntityPickupCard[]
Defined in: packages/isaacscript-common/src/functions/pickupsSpecific.ts:52
Helper function to get all of the card entities in the room.
Parameters
Section titled “Parameters”cardType?
Section titled “cardType?”CardType | -1
Optional. If specified, will only get the cards that match the sub-type. Default is -1, which matches every sub-type.
Returns
Section titled “Returns”readonly EntityPickupCard[]
getChests()
Section titled “getChests()”getChests(
subType?): readonlyEntityPickup[]
Defined in: packages/isaacscript-common/src/functions/pickupsSpecific.ts:65
Helper function to get all of the chest entities in the room. Specifically, this is all of the
pickups with a variant in the CHEST_PICKUP_VARIANTS constant.
Parameters
Section titled “Parameters”subType?
Section titled “subType?”number = -1
Optional. If specified, will only get the chests that match the sub-type. Default is -1, which matches every sub-type.
Returns
Section titled “Returns”readonly EntityPickup[]
getCoins()
Section titled “getCoins()”getCoins(
coinSubType?): readonlyEntityPickupCoin[]
Defined in: packages/isaacscript-common/src/functions/pickupsSpecific.ts:82
Helper function to get all of the coin pickup entities in the room.
Parameters
Section titled “Parameters”coinSubType?
Section titled “coinSubType?”-1 | CoinSubType
Optional. If specified, will only get the coins that match the sub-type. Default is -1, which matches every sub-type.
Returns
Section titled “Returns”readonly EntityPickupCoin[]
getCollectibles()
Section titled “getCollectibles()”getCollectibles(
collectibleType?): readonlyEntityPickupCollectible[]
Defined in: packages/isaacscript-common/src/functions/pickupsSpecific.ts:94
Helper function to get all of the collectible entities in the room.
Parameters
Section titled “Parameters”collectibleType?
Section titled “collectibleType?”CollectibleType | -1
Optional. If specified, will only get the collectibles that match the sub-type. Default is -1, which matches every sub-type.
Returns
Section titled “Returns”readonly EntityPickupCollectible[]
getHearts()
Section titled “getHearts()”getHearts(
heartSubType?): readonlyEntityPickupHeart[]
Defined in: packages/isaacscript-common/src/functions/pickupsSpecific.ts:109
Helper function to get all of the heart pickup entities in the room.
Parameters
Section titled “Parameters”heartSubType?
Section titled “heartSubType?”-1 | HeartSubType
Optional. If specified, will only get the hearts that match the sub-type. Default is -1, which matches every sub-type.
Returns
Section titled “Returns”readonly EntityPickupHeart[]
getKeys()
Section titled “getKeys()”getKeys(
keySubType?): readonlyEntityPickupKey[]
Defined in: packages/isaacscript-common/src/functions/pickupsSpecific.ts:121
Helper function to get all of the key pickup entities in the room.
Parameters
Section titled “Parameters”keySubType?
Section titled “keySubType?”-1 | KeySubType
Optional. If specified, will only get the keys that match the sub-type. Default is -1, which matches every sub-type.
Returns
Section titled “Returns”readonly EntityPickupKey[]
getPills()
Section titled “getPills()”getPills(
pillColor?): readonlyEntityPickupPill[]
Defined in: packages/isaacscript-common/src/functions/pickupsSpecific.ts:133
Helper function to get all of the pill entities in the room.
Parameters
Section titled “Parameters”pillColor?
Section titled “pillColor?”PillColor | -1
Optional. If specified, will only get the pills that match the sub-type. Default is -1, which matches every sub-type.
Returns
Section titled “Returns”readonly EntityPickupPill[]
getSacks()
Section titled “getSacks()”getSacks(
sackSubType?): readonlyEntityPickupSack[]
Defined in: packages/isaacscript-common/src/functions/pickupsSpecific.ts:145
Helper function to get all of the sack (i.e. grab bag) entities in the room.
Parameters
Section titled “Parameters”sackSubType?
Section titled “sackSubType?”-1 | SackSubType
Optional. If specified, will only get the sacks that match the sub-type. Default is -1, which matches every sub-type.
Returns
Section titled “Returns”readonly EntityPickupSack[]
getTrinkets()
Section titled “getTrinkets()”getTrinkets(
trinketType?): readonlyEntityPickupTrinket[]
Defined in: packages/isaacscript-common/src/functions/pickupsSpecific.ts:157
Helper function to get all of the trinket entities in the room.
Parameters
Section titled “Parameters”trinketType?
Section titled “trinketType?”TrinketType | -1
Optional. If specified, will only get the trinkets that match the sub-type. Default is -1, which matches every sub-type.
Returns
Section titled “Returns”readonly EntityPickupTrinket[]
removeAllBatteries()
Section titled “removeAllBatteries()”removeAllBatteries(
batterySubType?,cap?): readonlyEntityPickupBattery[]
Defined in: packages/isaacscript-common/src/functions/pickupsSpecific.ts:174
Helper function to remove all of the batteries in the room.
Parameters
Section titled “Parameters”batterySubType?
Section titled “batterySubType?”-1 | BatterySubType
Optional. If specified, will only remove the batteries that match this sub-type. Default is -1, which matches every sub-type.
int
Optional. If specified, will only remove the given amount of cards.
Returns
Section titled “Returns”readonly EntityPickupBattery[]
The batteries that were removed.
removeAllBombPickups()
Section titled “removeAllBombPickups()”removeAllBombPickups(
bombSubType?,cap?): readonlyEntityPickupBomb[]
Defined in: packages/isaacscript-common/src/functions/pickupsSpecific.ts:194
Helper function to remove all of the bomb pickups in the room. (Specifically, this refers to bomb
pickups, not the EntityBomb class.)
Parameters
Section titled “Parameters”bombSubType?
Section titled “bombSubType?”-1 | BombSubType
Optional. If specified, will only remove bombs that match this sub-type. Default is -1, which matches every sub-type.
int
Optional. If specified, will only remove the given amount of bombs.
Returns
Section titled “Returns”readonly EntityPickupBomb[]
The bombs that were removed.
removeAllCards()
Section titled “removeAllCards()”removeAllCards(
cardType?,cap?): readonlyEntityPickupCard[]
Defined in: packages/isaacscript-common/src/functions/pickupsSpecific.ts:213
Helper function to remove all of the cards in the room.
Parameters
Section titled “Parameters”cardType?
Section titled “cardType?”CardType | -1
Optional. If specified, will only remove cards that match this sub-type. Default is -1, which matches every sub-type.
int
Optional. If specified, will only remove the given amount of cards.
Returns
Section titled “Returns”readonly EntityPickupCard[]
The cards that were removed.
removeAllChests()
Section titled “removeAllChests()”removeAllChests(
subType?,cap?): readonlyEntityPickup[]
Defined in: packages/isaacscript-common/src/functions/pickupsSpecific.ts:233
Helper function to remove all of the chests in the room. Specifically, this is all of the pickups
with a variant in the CHEST_PICKUP_VARIANTS constant.
Parameters
Section titled “Parameters”subType?
Section titled “subType?”number = -1
Optional. If specified, will only remove chests that match this sub-type. Default is -1, which matches every sub-type.
int
Optional. If specified, will only remove the given amount of chests.
Returns
Section titled “Returns”readonly EntityPickup[]
The chests that were removed.
removeAllCoins()
Section titled “removeAllCoins()”removeAllCoins(
coinSubType?,cap?): readonlyEntityPickupCoin[]
Defined in: packages/isaacscript-common/src/functions/pickupsSpecific.ts:249
Helper function to remove all of the coins in the room.
Parameters
Section titled “Parameters”coinSubType?
Section titled “coinSubType?”CoinSubType
Optional. If specified, will only remove coins that match this sub-type. Default is -1, which matches every sub-type.
int
Optional. If specified, will only remove the given amount of coins.
Returns
Section titled “Returns”readonly EntityPickupCoin[]
The coins that were removed.
removeAllCollectibles()
Section titled “removeAllCollectibles()”removeAllCollectibles(
collectibleType?,cap?): readonlyEntityPickupCollectible[]
Defined in: packages/isaacscript-common/src/functions/pickupsSpecific.ts:268
Helper function to remove all of the collectibles in the room.
Parameters
Section titled “Parameters”collectibleType?
Section titled “collectibleType?”CollectibleType
Optional. If specified, will only remove collectibles that match this sub-type. Default is -1, which matches every sub-type.
int
Optional. If specified, will only remove the given amount of collectibles.
Returns
Section titled “Returns”readonly EntityPickupCollectible[]
The collectibles that were removed.
removeAllHearts()
Section titled “removeAllHearts()”removeAllHearts(
heartSubType?,cap?): readonlyEntityPickupHeart[]
Defined in: packages/isaacscript-common/src/functions/pickupsSpecific.ts:287
Helper function to remove all of the heart pickup entities in the room.
Parameters
Section titled “Parameters”heartSubType?
Section titled “heartSubType?”HeartSubType
Optional. If specified, will only remove hearts that match this sub-type. Default is -1, which matches every sub-type.
int
Optional. If specified, will only remove the given amount of hearts.
Returns
Section titled “Returns”readonly EntityPickupHeart[]
The hearts that were removed.
removeAllKeys()
Section titled “removeAllKeys()”removeAllKeys(
keySubType?,cap?): readonlyEntityPickupKey[]
Defined in: packages/isaacscript-common/src/functions/pickupsSpecific.ts:306
Helper function to remove all of the keys in the room.
Parameters
Section titled “Parameters”keySubType?
Section titled “keySubType?”KeySubType
Optional. If specified, will only remove keys that match this sub-type. Default is -1, which matches every sub-type.
int
Optional. If specified, will only remove the given amount of keys.
Returns
Section titled “Returns”readonly EntityPickupKey[]
The keys that were removed.
removeAllPills()
Section titled “removeAllPills()”removeAllPills(
pillColor?,cap?): readonlyEntityPickupPill[]
Defined in: packages/isaacscript-common/src/functions/pickupsSpecific.ts:325
Helper function to remove all of the pills in the room.
Parameters
Section titled “Parameters”pillColor?
Section titled “pillColor?”PillColor
Optional. If specified, will only remove pills that match this sub-type. Default is -1, which matches every sub-type.
int
Optional. If specified, will only remove the given amount of pills.
Returns
Section titled “Returns”readonly EntityPickupPill[]
The pills that were removed.
removeAllSacks()
Section titled “removeAllSacks()”removeAllSacks(
sackSubType?,cap?): readonlyEntityPickupSack[]
Defined in: packages/isaacscript-common/src/functions/pickupsSpecific.ts:344
Helper function to remove all of the sacks (i.e. grab bags) in the room.
Parameters
Section titled “Parameters”sackSubType?
Section titled “sackSubType?”SackSubType
Optional. If specified, will only remove sacks that match this sub-type. Default is -1, which matches every sub-type.
int
Optional. If specified, will only remove the given amount of sacks.
Returns
Section titled “Returns”readonly EntityPickupSack[]
The sacks that were removed.
removeAllTrinkets()
Section titled “removeAllTrinkets()”removeAllTrinkets(
trinketType?,cap?): readonlyEntityPickupTrinket[]
Defined in: packages/isaacscript-common/src/functions/pickupsSpecific.ts:363
Helper function to remove all of the trinkets in the room.
Parameters
Section titled “Parameters”trinketType?
Section titled “trinketType?”TrinketType
Optional. If specified, will only remove trinkets that match this sub-type. Default is -1, which matches every sub-type.
int
Optional. If specified, will only remove the given amount of trinkets.
Returns
Section titled “Returns”readonly EntityPickupTrinket[]
The trinkets that were removed.
spawnBattery()
Section titled “spawnBattery()”spawnBattery(
batterySubType,positionOrGridIndex,velocity?,spawner?,seedOrRNG?):EntityPickupBattery
Defined in: packages/isaacscript-common/src/functions/pickupsSpecific.ts:377
Helper function to spawn a EntityType.PICKUP (5) with variant PickupVariant.LIL_BATTERY (90).
Parameters
Section titled “Parameters”batterySubType
Section titled “batterySubType”BatterySubType
positionOrGridIndex
Section titled “positionOrGridIndex”int | Vector
velocity?
Section titled “velocity?”Vector = VectorZero
spawner?
Section titled “spawner?”Entity
seedOrRNG?
Section titled “seedOrRNG?”RNG | Seed
Returns
Section titled “Returns”EntityPickupBattery
spawnBatteryWithSeed()
Section titled “spawnBatteryWithSeed()”spawnBatteryWithSeed(
batterySubType,positionOrGridIndex,seedOrRNG,velocity?,spawner?):EntityPickupBattery
Defined in: packages/isaacscript-common/src/functions/pickupsSpecific.ts:398
Helper function to spawn a EntityType.PICKUP (5) with variant PickupVariant.LIL_BATTERY (90)
and a specific seed.
Parameters
Section titled “Parameters”batterySubType
Section titled “batterySubType”BatterySubType
positionOrGridIndex
Section titled “positionOrGridIndex”int | Vector
seedOrRNG
Section titled “seedOrRNG”RNG | Seed
velocity?
Section titled “velocity?”Vector = VectorZero
spawner?
Section titled “spawner?”Entity
Returns
Section titled “Returns”EntityPickupBattery
spawnBombPickup()
Section titled “spawnBombPickup()”spawnBombPickup(
bombSubType,positionOrGridIndex,velocity?,spawner?,seedOrRNG?):EntityPickupBomb
Defined in: packages/isaacscript-common/src/functions/pickupsSpecific.ts:415
Helper function to spawn a EntityType.PICKUP (5) with variant PickupVariant.BOMB (40).
Parameters
Section titled “Parameters”bombSubType
Section titled “bombSubType”BombSubType
positionOrGridIndex
Section titled “positionOrGridIndex”int | Vector
velocity?
Section titled “velocity?”Vector = VectorZero
spawner?
Section titled “spawner?”Entity
seedOrRNG?
Section titled “seedOrRNG?”RNG | Seed
Returns
Section titled “Returns”EntityPickupBomb
spawnBombPickupWithSeed()
Section titled “spawnBombPickupWithSeed()”spawnBombPickupWithSeed(
bombSubType,positionOrGridIndex,seedOrRNG,velocity?,spawner?):EntityPickupBomb
Defined in: packages/isaacscript-common/src/functions/pickupsSpecific.ts:436
Helper function to spawn a EntityType.PICKUP (5) with variant PickupVariant.BOMB (40) and a
specific seed.
Parameters
Section titled “Parameters”bombSubType
Section titled “bombSubType”BombSubType
positionOrGridIndex
Section titled “positionOrGridIndex”int | Vector
seedOrRNG
Section titled “seedOrRNG”RNG | Seed
velocity?
Section titled “velocity?”Vector = VectorZero
spawner?
Section titled “spawner?”Entity
Returns
Section titled “Returns”EntityPickupBomb
spawnCard()
Section titled “spawnCard()”spawnCard(
cardType,positionOrGridIndex,velocity?,spawner?,seedOrRNG?):EntityPickupCard
Defined in: packages/isaacscript-common/src/functions/pickupsSpecific.ts:453
Helper function to spawn a EntityType.PICKUP (5) with variant PickupVariant.CARD (300).
Parameters
Section titled “Parameters”cardType
Section titled “cardType”CardType
positionOrGridIndex
Section titled “positionOrGridIndex”int | Vector
velocity?
Section titled “velocity?”Vector = VectorZero
spawner?
Section titled “spawner?”Entity
seedOrRNG?
Section titled “seedOrRNG?”RNG | Seed
Returns
Section titled “Returns”EntityPickupCard
spawnCardWithSeed()
Section titled “spawnCardWithSeed()”spawnCardWithSeed(
cardType,positionOrGridIndex,seedOrRNG,velocity?,spawner?):EntityPickupCard
Defined in: packages/isaacscript-common/src/functions/pickupsSpecific.ts:474
Helper function to spawn a EntityType.PICKUP (5) with variant PickupVariant.CARD (300) and a
specific seed.
Parameters
Section titled “Parameters”cardType
Section titled “cardType”CardType
positionOrGridIndex
Section titled “positionOrGridIndex”int | Vector
seedOrRNG
Section titled “seedOrRNG”RNG | Seed
velocity?
Section titled “velocity?”Vector = VectorZero
spawner?
Section titled “spawner?”Entity
Returns
Section titled “Returns”EntityPickupCard
spawnCoin()
Section titled “spawnCoin()”spawnCoin(
coinSubType,positionOrGridIndex,velocity?,spawner?,seedOrRNG?):EntityPickupCoin
Defined in: packages/isaacscript-common/src/functions/pickupsSpecific.ts:485
Helper function to spawn a EntityType.PICKUP (5) with variant PickupVariant.COIN (20).
Parameters
Section titled “Parameters”coinSubType
Section titled “coinSubType”CoinSubType
positionOrGridIndex
Section titled “positionOrGridIndex”int | Vector
velocity?
Section titled “velocity?”Vector = VectorZero
spawner?
Section titled “spawner?”Entity
seedOrRNG?
Section titled “seedOrRNG?”RNG | Seed
Returns
Section titled “Returns”EntityPickupCoin
spawnCoinWithSeed()
Section titled “spawnCoinWithSeed()”spawnCoinWithSeed(
coinSubType,positionOrGridIndex,seedOrRNG,velocity?,spawner?):EntityPickupCoin
Defined in: packages/isaacscript-common/src/functions/pickupsSpecific.ts:506
Helper function to spawn a EntityType.PICKUP (5) with variant PickupVariant.COIN (20) and a
specific seed.
Parameters
Section titled “Parameters”coinSubType
Section titled “coinSubType”CoinSubType
positionOrGridIndex
Section titled “positionOrGridIndex”int | Vector
seedOrRNG
Section titled “seedOrRNG”RNG | Seed
velocity?
Section titled “velocity?”Vector = VectorZero
spawner?
Section titled “spawner?”Entity
Returns
Section titled “Returns”EntityPickupCoin
spawnHeart()
Section titled “spawnHeart()”spawnHeart(
heartSubType,positionOrGridIndex,velocity?,spawner?,seedOrRNG?):EntityPickupHeart
Defined in: packages/isaacscript-common/src/functions/pickupsSpecific.ts:523
Helper function to spawn a EntityType.PICKUP (5) with variant PickupVariant.HEART (10).
Parameters
Section titled “Parameters”heartSubType
Section titled “heartSubType”HeartSubType
positionOrGridIndex
Section titled “positionOrGridIndex”int | Vector
velocity?
Section titled “velocity?”Vector = VectorZero
spawner?
Section titled “spawner?”Entity
seedOrRNG?
Section titled “seedOrRNG?”RNG | Seed
Returns
Section titled “Returns”EntityPickupHeart
spawnHeartWithSeed()
Section titled “spawnHeartWithSeed()”spawnHeartWithSeed(
heartSubType,positionOrGridIndex,seedOrRNG,velocity?,spawner?):EntityPickupHeart
Defined in: packages/isaacscript-common/src/functions/pickupsSpecific.ts:540
Parameters
Section titled “Parameters”heartSubType
Section titled “heartSubType”HeartSubType
positionOrGridIndex
Section titled “positionOrGridIndex”int | Vector
seedOrRNG
Section titled “seedOrRNG”RNG | Seed
velocity?
Section titled “velocity?”Vector = VectorZero
spawner?
Section titled “spawner?”Entity
Returns
Section titled “Returns”EntityPickupHeart
spawnKey()
Section titled “spawnKey()”spawnKey(
keySubType,positionOrGridIndex,velocity?,spawner?,seedOrRNG?):EntityPickupKey
Defined in: packages/isaacscript-common/src/functions/pickupsSpecific.ts:557
Helper function to spawn a EntityType.PICKUP (5) with variant PickupVariant.KEY (30).
Parameters
Section titled “Parameters”keySubType
Section titled “keySubType”KeySubType
positionOrGridIndex
Section titled “positionOrGridIndex”int | Vector
velocity?
Section titled “velocity?”Vector = VectorZero
spawner?
Section titled “spawner?”Entity
seedOrRNG?
Section titled “seedOrRNG?”RNG | Seed
Returns
Section titled “Returns”EntityPickupKey
spawnKeyWithSeed()
Section titled “spawnKeyWithSeed()”spawnKeyWithSeed(
keySubType,positionOrGridIndex,seedOrRNG,velocity?,spawner?):EntityPickupKey
Defined in: packages/isaacscript-common/src/functions/pickupsSpecific.ts:578
Helper function to spawn a EntityType.PICKUP (5) with variant PickupVariant.KEY (30) and a
specific seed.
Parameters
Section titled “Parameters”keySubType
Section titled “keySubType”KeySubType
positionOrGridIndex
Section titled “positionOrGridIndex”int | Vector
seedOrRNG
Section titled “seedOrRNG”RNG | Seed
velocity?
Section titled “velocity?”Vector = VectorZero
spawner?
Section titled “spawner?”Entity
Returns
Section titled “Returns”EntityPickupKey
spawnPill()
Section titled “spawnPill()”spawnPill(
pillColor,positionOrGridIndex,velocity?,spawner?,seedOrRNG?):EntityPickupPill
Defined in: packages/isaacscript-common/src/functions/pickupsSpecific.ts:595
Helper function to spawn a EntityType.PICKUP (5) with variant PickupVariant.PILL (70).
Parameters
Section titled “Parameters”pillColor
Section titled “pillColor”PillColor
positionOrGridIndex
Section titled “positionOrGridIndex”int | Vector
velocity?
Section titled “velocity?”Vector = VectorZero
spawner?
Section titled “spawner?”Entity
seedOrRNG?
Section titled “seedOrRNG?”RNG | Seed
Returns
Section titled “Returns”EntityPickupPill
spawnPillWithSeed()
Section titled “spawnPillWithSeed()”spawnPillWithSeed(
pillColor,positionOrGridIndex,seedOrRNG,velocity?,spawner?):EntityPickupPill
Defined in: packages/isaacscript-common/src/functions/pickupsSpecific.ts:616
Helper function to spawn a EntityType.PICKUP (5) with variant PickupVariant.PILL (70) and a
specific seed.
Parameters
Section titled “Parameters”pillColor
Section titled “pillColor”PillColor
positionOrGridIndex
Section titled “positionOrGridIndex”int | Vector
seedOrRNG
Section titled “seedOrRNG”RNG | Seed
velocity?
Section titled “velocity?”Vector = VectorZero
spawner?
Section titled “spawner?”Entity
Returns
Section titled “Returns”EntityPickupPill
spawnSack()
Section titled “spawnSack()”spawnSack(
sackSubType,positionOrGridIndex,velocity?,spawner?,seedOrRNG?):EntityPickupSack
Defined in: packages/isaacscript-common/src/functions/pickupsSpecific.ts:633
Helper function to spawn a EntityType.PICKUP (5) with variant PickupVariant.SACK (69).
Parameters
Section titled “Parameters”sackSubType
Section titled “sackSubType”SackSubType
positionOrGridIndex
Section titled “positionOrGridIndex”int | Vector
velocity?
Section titled “velocity?”Vector = VectorZero
spawner?
Section titled “spawner?”Entity
seedOrRNG?
Section titled “seedOrRNG?”RNG | Seed
Returns
Section titled “Returns”EntityPickupSack
spawnSackWithSeed()
Section titled “spawnSackWithSeed()”spawnSackWithSeed(
sackSubType,positionOrGridIndex,seedOrRNG,velocity?,spawner?):EntityPickupSack
Defined in: packages/isaacscript-common/src/functions/pickupsSpecific.ts:654
Helper function to spawn a EntityType.PICKUP (5) with variant PickupVariant.SACK (69) and a
specific seed.
Parameters
Section titled “Parameters”sackSubType
Section titled “sackSubType”SackSubType
positionOrGridIndex
Section titled “positionOrGridIndex”int | Vector
seedOrRNG
Section titled “seedOrRNG”RNG | Seed
velocity?
Section titled “velocity?”Vector = VectorZero
spawner?
Section titled “spawner?”Entity
Returns
Section titled “Returns”EntityPickupSack
spawnTrinket()
Section titled “spawnTrinket()”spawnTrinket(
trinketType,positionOrGridIndex,velocity?,spawner?,seedOrRNG?):EntityPickupTrinket
Defined in: packages/isaacscript-common/src/functions/pickupsSpecific.ts:673
Helper function to spawn a EntityType.PICKUP (5) with variant PickupVariant.TRINKET (350).
Parameters
Section titled “Parameters”trinketType
Section titled “trinketType”TrinketType
positionOrGridIndex
Section titled “positionOrGridIndex”int | Vector
velocity?
Section titled “velocity?”Vector = VectorZero
spawner?
Section titled “spawner?”Entity
seedOrRNG?
Section titled “seedOrRNG?”RNG | Seed
Returns
Section titled “Returns”EntityPickupTrinket
spawnTrinketWithSeed()
Section titled “spawnTrinketWithSeed()”spawnTrinketWithSeed(
trinketType,positionOrGridIndex,seedOrRNG,velocity?,spawner?):EntityPickupTrinket
Defined in: packages/isaacscript-common/src/functions/pickupsSpecific.ts:694
Helper function to spawn a EntityType.PICKUP (5) with variant PickupVariant.TRINKET (350) and
a specific seed.
Parameters
Section titled “Parameters”trinketType
Section titled “trinketType”TrinketType
positionOrGridIndex
Section titled “positionOrGridIndex”int | Vector
seedOrRNG
Section titled “seedOrRNG”RNG | Seed
velocity?
Section titled “velocity?”Vector = VectorZero
spawner?
Section titled “spawner?”Entity
Returns
Section titled “Returns”EntityPickupTrinket
