Skip to main content

Pickup Variants

Functions

isHeart

isHeart(pickup): pickup is EntityPickupHeart

For PickupVariant.HEART (10).

Parameters

NameType
pickupEntityPickup

Returns

pickup is EntityPickupHeart

Defined in

packages/isaacscript-common/src/functions/pickupVariants.ts:6


isCoin

isCoin(pickup): pickup is EntityPickupCoin

For PickupVariant.COIN (20).

Parameters

NameType
pickupEntityPickup

Returns

pickup is EntityPickupCoin

Defined in

packages/isaacscript-common/src/functions/pickupVariants.ts:13


isKey

isKey(pickup): pickup is EntityPickupKey

For PickupVariant.KEY (30).

Parameters

NameType
pickupEntityPickup

Returns

pickup is EntityPickupKey

Defined in

packages/isaacscript-common/src/functions/pickupVariants.ts:20


isBombPickup

isBombPickup(pickup): pickup is EntityPickupBomb

For PickupVariant.BOMB (40).

Parameters

NameType
pickupEntityPickup

Returns

pickup is EntityPickupBomb

Defined in

packages/isaacscript-common/src/functions/pickupVariants.ts:27


isPoopPickup

isPoopPickup(pickup): pickup is EntityPickupPoop

For PickupVariant.POOP (42).

Parameters

NameType
pickupEntityPickup

Returns

pickup is EntityPickupPoop

Defined in

packages/isaacscript-common/src/functions/pickupVariants.ts:34


isSack

isSack(pickup): pickup is EntityPickupSack

For PickupVariant.SACK (69).

Parameters

NameType
pickupEntityPickup

Returns

pickup is EntityPickupSack

Defined in

packages/isaacscript-common/src/functions/pickupVariants.ts:41


isPill

isPill(pickup): pickup is EntityPickupPill

For PickupVariant.PILL (70).

Parameters

NameType
pickupEntityPickup

Returns

pickup is EntityPickupPill

Defined in

packages/isaacscript-common/src/functions/pickupVariants.ts:48


isBattery

isBattery(pickup): pickup is EntityPickupBattery

For PickupVariant.LIL_BATTERY (90).

Parameters

NameType
pickupEntityPickup

Returns

pickup is EntityPickupBattery

Defined in

packages/isaacscript-common/src/functions/pickupVariants.ts:55


isCollectible

isCollectible(pickup): pickup is EntityPickupCollectible

For PickupVariant.COLLECTIBLE (100).

Parameters

NameType
pickupEntityPickup

Returns

pickup is EntityPickupCollectible

Defined in

packages/isaacscript-common/src/functions/pickupVariants.ts:63


isCardPickup

isCardPickup(pickup): pickup is EntityPickupCard

For PickupVariant.CARD (300).

Parameters

NameType
pickupEntityPickup

Returns

pickup is EntityPickupCard

Defined in

packages/isaacscript-common/src/functions/pickupVariants.ts:73


isTrinket

isTrinket(pickup): pickup is EntityPickupTrinket

For PickupVariant.TRINKET (350).

Parameters

NameType
pickupEntityPickup

Returns

pickup is EntityPickupTrinket

Defined in

packages/isaacscript-common/src/functions/pickupVariants.ts:80