Skip to content

Pickups Specific

getBatteries(batterySubType?): readonly EntityPickupBattery[]

Defined in: packages/isaacscript-common/src/functions/pickupsSpecific.ts:24

Helper function to get all of the battery entities in the room.

-1 | BatterySubType

Optional. If specified, will only get the batteries that match the sub-type. Default is -1, which matches every sub-type.

readonly EntityPickupBattery[]


getBombPickups(bombSubType?): readonly EntityPickupBomb[]

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

-1 | BombSubType

Optional. If specified, will only get the bombs that match the sub-type. Default is -1, which matches every sub-type.

readonly EntityPickupBomb[]


getCards(cardType?): readonly EntityPickupCard[]

Defined in: packages/isaacscript-common/src/functions/pickupsSpecific.ts:52

Helper function to get all of the card entities in the room.

CardType | -1

Optional. If specified, will only get the cards that match the sub-type. Default is -1, which matches every sub-type.

readonly EntityPickupCard[]


getChests(subType?): readonly EntityPickup[]

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.

number = -1

Optional. If specified, will only get the chests that match the sub-type. Default is -1, which matches every sub-type.

readonly EntityPickup[]


getCoins(coinSubType?): readonly EntityPickupCoin[]

Defined in: packages/isaacscript-common/src/functions/pickupsSpecific.ts:82

Helper function to get all of the coin pickup entities in the room.

-1 | CoinSubType

Optional. If specified, will only get the coins that match the sub-type. Default is -1, which matches every sub-type.

readonly EntityPickupCoin[]


getCollectibles(collectibleType?): readonly EntityPickupCollectible[]

Defined in: packages/isaacscript-common/src/functions/pickupsSpecific.ts:94

Helper function to get all of the collectible entities in the room.

CollectibleType | -1

Optional. If specified, will only get the collectibles that match the sub-type. Default is -1, which matches every sub-type.

readonly EntityPickupCollectible[]


getHearts(heartSubType?): readonly EntityPickupHeart[]

Defined in: packages/isaacscript-common/src/functions/pickupsSpecific.ts:109

Helper function to get all of the heart pickup entities in the room.

-1 | HeartSubType

Optional. If specified, will only get the hearts that match the sub-type. Default is -1, which matches every sub-type.

readonly EntityPickupHeart[]


getKeys(keySubType?): readonly EntityPickupKey[]

Defined in: packages/isaacscript-common/src/functions/pickupsSpecific.ts:121

Helper function to get all of the key pickup entities in the room.

-1 | KeySubType

Optional. If specified, will only get the keys that match the sub-type. Default is -1, which matches every sub-type.

readonly EntityPickupKey[]


getPills(pillColor?): readonly EntityPickupPill[]

Defined in: packages/isaacscript-common/src/functions/pickupsSpecific.ts:133

Helper function to get all of the pill entities in the room.

PillColor | -1

Optional. If specified, will only get the pills that match the sub-type. Default is -1, which matches every sub-type.

readonly EntityPickupPill[]


getSacks(sackSubType?): readonly EntityPickupSack[]

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.

-1 | SackSubType

Optional. If specified, will only get the sacks that match the sub-type. Default is -1, which matches every sub-type.

readonly EntityPickupSack[]


getTrinkets(trinketType?): readonly EntityPickupTrinket[]

Defined in: packages/isaacscript-common/src/functions/pickupsSpecific.ts:157

Helper function to get all of the trinket entities in the room.

TrinketType | -1

Optional. If specified, will only get the trinkets that match the sub-type. Default is -1, which matches every sub-type.

readonly EntityPickupTrinket[]


removeAllBatteries(batterySubType?, cap?): readonly EntityPickupBattery[]

Defined in: packages/isaacscript-common/src/functions/pickupsSpecific.ts:174

Helper function to remove all of the batteries in the room.

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

readonly EntityPickupBattery[]

The batteries that were removed.


removeAllBombPickups(bombSubType?, cap?): readonly EntityPickupBomb[]

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

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

readonly EntityPickupBomb[]

The bombs that were removed.


removeAllCards(cardType?, cap?): readonly EntityPickupCard[]

Defined in: packages/isaacscript-common/src/functions/pickupsSpecific.ts:213

Helper function to remove all of the cards in the room.

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.

readonly EntityPickupCard[]

The cards that were removed.


removeAllChests(subType?, cap?): readonly EntityPickup[]

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.

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.

readonly EntityPickup[]

The chests that were removed.


removeAllCoins(coinSubType?, cap?): readonly EntityPickupCoin[]

Defined in: packages/isaacscript-common/src/functions/pickupsSpecific.ts:249

Helper function to remove all of the coins in the room.

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.

readonly EntityPickupCoin[]

The coins that were removed.


removeAllCollectibles(collectibleType?, cap?): readonly EntityPickupCollectible[]

Defined in: packages/isaacscript-common/src/functions/pickupsSpecific.ts:268

Helper function to remove all of the collectibles in the room.

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.

readonly EntityPickupCollectible[]

The collectibles that were removed.


removeAllHearts(heartSubType?, cap?): readonly EntityPickupHeart[]

Defined in: packages/isaacscript-common/src/functions/pickupsSpecific.ts:287

Helper function to remove all of the heart pickup entities in the room.

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.

readonly EntityPickupHeart[]

The hearts that were removed.


removeAllKeys(keySubType?, cap?): readonly EntityPickupKey[]

Defined in: packages/isaacscript-common/src/functions/pickupsSpecific.ts:306

Helper function to remove all of the keys in the room.

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.

readonly EntityPickupKey[]

The keys that were removed.


removeAllPills(pillColor?, cap?): readonly EntityPickupPill[]

Defined in: packages/isaacscript-common/src/functions/pickupsSpecific.ts:325

Helper function to remove all of the pills in the room.

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.

readonly EntityPickupPill[]

The pills that were removed.


removeAllSacks(sackSubType?, cap?): readonly EntityPickupSack[]

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.

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.

readonly EntityPickupSack[]

The sacks that were removed.


removeAllTrinkets(trinketType?, cap?): readonly EntityPickupTrinket[]

Defined in: packages/isaacscript-common/src/functions/pickupsSpecific.ts:363

Helper function to remove all of the trinkets in the room.

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.

readonly EntityPickupTrinket[]

The trinkets that were removed.


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

BatterySubType

int | Vector

Vector = VectorZero

Entity

RNG | Seed

EntityPickupBattery


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.

BatterySubType

int | Vector

RNG | Seed

Vector = VectorZero

Entity

EntityPickupBattery


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

BombSubType

int | Vector

Vector = VectorZero

Entity

RNG | Seed

EntityPickupBomb


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.

BombSubType

int | Vector

RNG | Seed

Vector = VectorZero

Entity

EntityPickupBomb


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

CardType

int | Vector

Vector = VectorZero

Entity

RNG | Seed

EntityPickupCard


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.

CardType

int | Vector

RNG | Seed

Vector = VectorZero

Entity

EntityPickupCard


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

CoinSubType

int | Vector

Vector = VectorZero

Entity

RNG | Seed

EntityPickupCoin


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.

CoinSubType

int | Vector

RNG | Seed

Vector = VectorZero

Entity

EntityPickupCoin


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

HeartSubType

int | Vector

Vector = VectorZero

Entity

RNG | Seed

EntityPickupHeart


spawnHeartWithSeed(heartSubType, positionOrGridIndex, seedOrRNG, velocity?, spawner?): EntityPickupHeart

Defined in: packages/isaacscript-common/src/functions/pickupsSpecific.ts:540

HeartSubType

int | Vector

RNG | Seed

Vector = VectorZero

Entity

EntityPickupHeart


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

KeySubType

int | Vector

Vector = VectorZero

Entity

RNG | Seed

EntityPickupKey


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.

KeySubType

int | Vector

RNG | Seed

Vector = VectorZero

Entity

EntityPickupKey


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

PillColor

int | Vector

Vector = VectorZero

Entity

RNG | Seed

EntityPickupPill


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.

PillColor

int | Vector

RNG | Seed

Vector = VectorZero

Entity

EntityPickupPill


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

SackSubType

int | Vector

Vector = VectorZero

Entity

RNG | Seed

EntityPickupSack


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.

SackSubType

int | Vector

RNG | Seed

Vector = VectorZero

Entity

EntityPickupSack


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

TrinketType

int | Vector

Vector = VectorZero

Entity

RNG | Seed

EntityPickupTrinket


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.

TrinketType

int | Vector

RNG | Seed

Vector = VectorZero

Entity

EntityPickupTrinket