Pickups Specific
Functions
getBatteries
▸ getBatteries(batterySubType?): readonly EntityPickupBattery[]
Helper function to get all of the battery entities in the room.
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
batterySubType | -1 | BatterySubType | -1 | Optional. If specified, will only get the batteries that match the sub-type. Default is -1, which matches every sub-type. |
Returns
readonly EntityPickupBattery[]
Defined in
packages/isaacscript-common/src/functions/pickupsSpecific.ts:24
getBombPickups
▸ getBombPickups(bombSubType?): readonly EntityPickupBomb[]
Helper function to get all of the bomb entities in the room. (Specifically, this refers to bomb
pickups, not the EntityBomb class.)
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
bombSubType | -1 | BombSubType | -1 | Optional. If specified, will only get the bombs that match the sub-type. Default is -1, which matches every sub-type. |
Returns
readonly EntityPickupBomb[]
Defined in
packages/isaacscript-common/src/functions/pickupsSpecific.ts:40
getCards
▸ getCards(cardType?): readonly EntityPickupCard[]
Helper function to get all of the card entities in the room.
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
cardType | CardType | -1 | -1 | Optional. If specified, will only get the cards that match the sub-type. Default is -1, which matches every sub-type. |
Returns
readonly EntityPickupCard[]
Defined in
packages/isaacscript-common/src/functions/pickupsSpecific.ts:52
getChests
▸ getChests(subType?): readonly EntityPickup[]
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
| Name | Type | Default value | Description |
|---|---|---|---|
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
readonly EntityPickup[]
Defined in
packages/isaacscript-common/src/functions/pickupsSpecific.ts:65
getCoins
▸ getCoins(coinSubType?): readonly EntityPickupCoin[]
Helper function to get all of the coin pickup entities in the room.
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
coinSubType | -1 | CoinSubType | -1 | Optional. If specified, will only get the coins that match the sub-type. Default is -1, which matches every sub-type. |
Returns
readonly EntityPickupCoin[]
Defined in
packages/isaacscript-common/src/functions/pickupsSpecific.ts:82
getCollectibles
▸ getCollectibles(collectibleType?): readonly EntityPickupCollectible[]
Helper function to get all of the collectible entities in the room.
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
collectibleType | CollectibleType | -1 | -1 | Optional. If specified, will only get the collectibles that match the sub-type. Default is -1, which matches every sub-type. |
Returns
readonly EntityPickupCollectible[]
Defined in
packages/isaacscript-common/src/functions/pickupsSpecific.ts:94
getHearts
▸ getHearts(heartSubType?): readonly EntityPickupHeart[]
Helper function to get all of the heart pickup entities in the room.
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
heartSubType | -1 | HeartSubType | -1 | Optional. If specified, will only get the hearts that match the sub-type. Default is -1, which matches every sub-type. |
Returns
readonly EntityPickupHeart[]
Defined in
packages/isaacscript-common/src/functions/pickupsSpecific.ts:109
getKeys
▸ getKeys(keySubType?): readonly EntityPickupKey[]
Helper function to get all of the key pickup entities in the room.
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
keySubType | -1 | KeySubType | -1 | Optional. If specified, will only get the keys that match the sub-type. Default is -1, which matches every sub-type. |
Returns
readonly EntityPickupKey[]
Defined in
packages/isaacscript-common/src/functions/pickupsSpecific.ts:121
getPills
▸ getPills(pillColor?): readonly EntityPickupPill[]
Helper function to get all of the pill entities in the room.
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
pillColor | PillColor | -1 | -1 | Optional. If specified, will only get the pills that match the sub-type. Default is -1, which matches every sub-type. |
Returns
readonly EntityPickupPill[]
Defined in
packages/isaacscript-common/src/functions/pickupsSpecific.ts:133
getSacks
▸ getSacks(sackSubType?): readonly EntityPickupSack[]
Helper function to get all of the sack (i.e. grab bag) entities in the room.
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
sackSubType | -1 | SackSubType | -1 | Optional. If specified, will only get the sacks that match the sub-type. Default is -1, which matches every sub-type. |
Returns
readonly EntityPickupSack[]
Defined in
packages/isaacscript-common/src/functions/pickupsSpecific.ts:145
getTrinkets
▸ getTrinkets(trinketType?): readonly EntityPickupTrinket[]
Helper function to get all of the trinket entities in the room.
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
trinketType | TrinketType | -1 | -1 | Optional. If specified, will only get the trinkets that match the sub-type. Default is -1, which matches every sub-type. |
Returns
readonly EntityPickupTrinket[]
Defined in
packages/isaacscript-common/src/functions/pickupsSpecific.ts:157
removeAllBatteries
▸ removeAllBatteries(batterySubType?, cap?): readonly EntityPickupBattery[]
Helper function to remove all of the batteries in the room.
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
batterySubType | -1 | BatterySubType | -1 | Optional. If specified, will only remove the batteries that match this sub-type. Default is -1, which matches every sub-type. |
cap? | int | undefined | Optional. If specified, will only remove the given amount of cards. |
Returns
readonly EntityPickupBattery[]
The batteries that were removed.
Defined in
packages/isaacscript-common/src/functions/pickupsSpecific.ts:174
removeAllBombPickups
▸ removeAllBombPickups(bombSubType?, cap?): readonly EntityPickupBomb[]
Helper function to remove all of the bomb pickups in the room. (Specifically, this refers to bomb
pickups, not the EntityBomb class.)
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
bombSubType | -1 | BombSubType | -1 | Optional. If specified, will only remove bombs that match this sub-type. Default is -1, which matches every sub-type. |
cap? | int | undefined | Optional. If specified, will only remove the given amount of bombs. |
Returns
readonly EntityPickupBomb[]
The bombs that were removed.
Defined in
packages/isaacscript-common/src/functions/pickupsSpecific.ts:194
removeAllCards
▸ removeAllCards(cardType?, cap?): readonly EntityPickupCard[]
Helper function to remove all of the cards in the room.
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
cardType | CardType | -1 | -1 | Optional. If specified, will only remove cards that match this sub-type. Default is -1, which matches every sub-type. |
cap? | int | undefined | Optional. If specified, will only remove the given amount of cards. |
Returns
readonly EntityPickupCard[]
The cards that were removed.
Defined in
packages/isaacscript-common/src/functions/pickupsSpecific.ts:213
removeAllChests
▸ removeAllChests(subType?, cap?): readonly EntityPickup[]
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
| Name | Type | Default value | Description |
|---|---|---|---|
subType | number | -1 | Optional. If specified, will only remove chests that match this sub-type. Default is -1, which matches every sub-type. |
cap? | int | undefined | Optional. If specified, will only remove the given amount of chests. |
Returns
readonly EntityPickup[]
The chests that were removed.
Defined in
packages/isaacscript-common/src/functions/pickupsSpecific.ts:233
removeAllCoins
▸ removeAllCoins(coinSubType?, cap?): readonly EntityPickupCoin[]
Helper function to remove all of the coins in the room.
Parameters
| Name | Type | Description |
|---|---|---|
coinSubType? | CoinSubType | Optional. If specified, will only remove coins that match this sub-type. Default is -1, which matches every sub-type. |
cap? | int | Optional. If specified, will only remove the given amount of coins. |
Returns
readonly EntityPickupCoin[]
The coins that were removed.
Defined in
packages/isaacscript-common/src/functions/pickupsSpecific.ts:249
removeAllCollectibles
▸ removeAllCollectibles(collectibleType?, cap?): readonly EntityPickupCollectible[]
Helper function to remove all of the collectibles in the room.
Parameters
| Name | Type | Description |
|---|---|---|
collectibleType? | CollectibleType | Optional. If specified, will only remove collectibles that match this sub-type. Default is -1, which matches every sub-type. |
cap? | int | Optional. If specified, will only remove the given amount of collectibles. |
Returns
readonly EntityPickupCollectible[]
The collectibles that were removed.
Defined in
packages/isaacscript-common/src/functions/pickupsSpecific.ts:268
removeAllHearts
▸ removeAllHearts(heartSubType?, cap?): readonly EntityPickupHeart[]
Helper function to remove all of the heart pickup entities in the room.
Parameters
| Name | Type | Description |
|---|---|---|
heartSubType? | HeartSubType | Optional. If specified, will only remove hearts that match this sub-type. Default is -1, which matches every sub-type. |
cap? | int | Optional. If specified, will only remove the given amount of hearts. |
Returns
readonly EntityPickupHeart[]
The hearts that were removed.
Defined in
packages/isaacscript-common/src/functions/pickupsSpecific.ts:287