Skip to content

Grid Entities Specific

getCrawlSpaces(crawlSpaceVariant?): readonly GridEntity[]

Defined in: packages/isaacscript-common/src/functions/gridEntitiesSpecific.ts:26

Helper function to get all of the grid entities of type GridEntityType.CRAWL_SPACE (18) in the room.

-1 | CrawlSpaceVariant

Optional. If specified, will only get the crawl spaces that match the variant. Default is -1, which matches every variant.

readonly GridEntity[]


getPits(pitVariant?): readonly GridEntityPit[]

Defined in: packages/isaacscript-common/src/functions/gridEntitiesSpecific.ts:45

Helper function to get all of the GridEntityPit in the room.

-1 | PitVariant

Optional. If specified, will only get the pits that match the variant. Default is -1, which matches every variant.

readonly GridEntityPit[]


getPoops(poopVariant?): readonly GridEntityPoop[]

Defined in: packages/isaacscript-common/src/functions/gridEntitiesSpecific.ts:68

Helper function to get all of the GridEntityPoop in the room.

-1 | PoopGridEntityVariant

Optional. If specified, will only get the poops that match the variant. Default is -1, which matches every variant.

readonly GridEntityPoop[]


getPressurePlates(pressurePlateVariant?): readonly GridEntityPressurePlate[]

Defined in: packages/isaacscript-common/src/functions/gridEntitiesSpecific.ts:91

Helper function to get all of the GridEntityPressurePlate in the room.

-1 | PressurePlateVariant

Optional. If specified, will only get the pressure plates that match the variant. Default is -1, which matches every variant.

readonly GridEntityPressurePlate[]


getRocks(variant?): readonly GridEntityRock[]

Defined in: packages/isaacscript-common/src/functions/gridEntitiesSpecific.ts:119

Helper function to get all of the GridEntityRock in the room.

number = -1

Optional. If specified, will only get the rocks that match the variant. Default is -1, which matches every variant. Note that this is not the same thing as the RockVariant enum, since that only applies to GridEntityType.ROCK, and other types of grid entities can be the GridEntityRock class.

readonly GridEntityRock[]


getSpikes(variant?): readonly GridEntitySpikes[]

Defined in: packages/isaacscript-common/src/functions/gridEntitiesSpecific.ts:135

Helper function to get all of the GridEntitySpikes in the room.

number = -1

readonly GridEntitySpikes[]


getTeleporters(variant?): readonly GridEntity[]

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

Helper function to get all of the grid entities of type GridEntityType.TELEPORTER (23) in the room.

number = -1

Optional. If specified, will only get the teleporters that match the variant. Default is -1, which matches every variant.

readonly GridEntity[]


getTNT(variant?): readonly GridEntityTNT[]

Defined in: packages/isaacscript-common/src/functions/gridEntitiesSpecific.ts:166

Helper function to get all of the GridEntityTNT in the room.

number = -1

readonly GridEntityTNT[]


getTrapdoors(trapdoorVariant?): readonly GridEntity[]

Defined in: packages/isaacscript-common/src/functions/gridEntitiesSpecific.ts:188

Helper function to get all of the grid entities of type GridEntityType.TRAPDOOR (17) in the room. Specify a specific trapdoor variant to select only trapdoors of that variant.

-1 | TrapdoorVariant

Optional. If specified, will only get the trapdoors that match the variant. Default is -1, which matches every variant.

readonly GridEntity[]


removeAllCrawlSpaces(crawlSpaceVariant?, updateRoom?, cap?): readonly GridEntity[]

Defined in: packages/isaacscript-common/src/functions/gridEntitiesSpecific.ts:209

Helper function to remove all of the GridEntityType.CRAWL_SPACE (18) in the room.

-1 | CrawlSpaceVariant

Optional. If specified, will only remove the crawl spaces that match this variant. Default is -1, which matches every variant.

boolean = false

Optional. Whether to update the room after the crawl spaces are removed. Default is false. For more information, see the description of the removeGridEntities helper function.

int

Optional. If specified, will only remove the given amount of crawl spaces.

readonly GridEntity[]

The crawl spaces that were removed.


removeAllPits(pitVariant?, updateRoom?, cap?): readonly GridEntityPit[]

Defined in: packages/isaacscript-common/src/functions/gridEntitiesSpecific.ts:232

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

-1 | PitVariant

Optional. If specified, will only remove the pits that match this variant. Default is -1, which matches every variant.

boolean = false

Optional. Whether to update the room after the pits are removed. Default is false. For more information, see the description of the removeGridEntities helper function.

int

Optional. If specified, will only remove the given amount of pits.

readonly GridEntityPit[]

The pits that were removed.


removeAllPoops(poopVariant?, updateRoom?, cap?): readonly GridEntityPoop[]

Defined in: packages/isaacscript-common/src/functions/gridEntitiesSpecific.ts:255

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

Note that poops can either be an entity or a grid entity, depending on the situation. This function will only remove the grid entity poops.

-1 | PoopGridEntityVariant

Optional. If specified, will only remove the poops that match this variant. Default is -1, which matches every variant.

boolean = false

Optional. Whether to update the room after the poops are removed. Default is false. For more information, see the description of the removeGridEntities helper function.

int

Optional. If specified, will only remove the given amount of poops.

readonly GridEntityPoop[]

The poops that were removed.


removeAllPressurePlates(pressurePlateVariant?, updateRoom?, cap?): readonly GridEntityPressurePlate[]

Defined in: packages/isaacscript-common/src/functions/gridEntitiesSpecific.ts:275

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

-1 | PressurePlateVariant

Optional. If specified, will only remove the pressure plates that match this variant. Default is -1, which matches every variant.

boolean = false

Optional. Whether to update the room after the pressure plates are removed. Default is false. For more information, see the description of the removeGridEntities helper function.

int

Optional. If specified, will only remove the given amount of pressure plates.

readonly GridEntityPressurePlate[]

The pressure plates that were removed.


removeAllRocks(variant?, updateRoom?, cap?): readonly GridEntityRock[]

Defined in: packages/isaacscript-common/src/functions/gridEntitiesSpecific.ts:297

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

number = -1

Optional. If specified, will only remove the rocks that match this variant. Default is -1, which matches every variant. Note that this is not the same thing as the RockVariant enum, since that only applies to GridEntityType.ROCK, and other types of grid entities can be the GridEntityRock class.

boolean = false

Optional. Whether to update the room after the rocks are removed. Default is false. For more information, see the description of the removeGridEntities helper function.

int

Optional. If specified, will only remove the given amount of rocks.

readonly GridEntityRock[]

The rocks that were removed.


removeAllSpikes(variant?, updateRoom?, cap?): readonly GridEntitySpikes[]

Defined in: packages/isaacscript-common/src/functions/gridEntitiesSpecific.ts:317

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

number = -1

Optional. If specified, will only remove the spikes that match this variant. Default is -1, which matches every variant.

boolean = false

Optional. Whether to update the room after the spikes are removed. Default is false. For more information, see the description of the removeGridEntities helper function.

int

Optional. If specified, will only remove the given amount of spikes.

readonly GridEntitySpikes[]

The spikes that were removed.


removeAllTeleporters(variant?, updateRoom?, cap?): readonly GridEntity[]

Defined in: packages/isaacscript-common/src/functions/gridEntitiesSpecific.ts:337

Helper function to remove all of the GridEntityType.TELEPORTER (23) in the room.

number = -1

Optional. If specified, will only remove the teleporters that match this variant. Default is -1, which matches every variant.

boolean = false

Optional. Whether to update the room after the teleporters are removed. Default is false. For more information, see the description of the removeGridEntities helper function.

int

Optional. If specified, will only remove the given amount of teleporters.

readonly GridEntity[]

The teleporters that were removed.


removeAllTNT(variant?, updateRoom?, cap?): readonly GridEntityTNT[]

Defined in: packages/isaacscript-common/src/functions/gridEntitiesSpecific.ts:357

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

number = -1

Optional. If specified, will only remove the TNTs that match this variant. Default is -1, which matches every variant.

boolean = false

Optional. Whether to update the room after the TNTs are removed. Default is false. For more information, see the description of the removeGridEntities helper function.

int

Optional. If specified, will only remove the given amount of TNTs.

readonly GridEntityTNT[]

The TNTs that were removed.


removeAllTrapdoors(trapdoorVariant?, updateRoom?, cap?): readonly GridEntity[]

Defined in: packages/isaacscript-common/src/functions/gridEntitiesSpecific.ts:377

Helper function to remove all of the GridEntityType.TRAPDOOR (17) in the room.

-1 | TrapdoorVariant

Optional. If specified, will only remove the trapdoors that match this variant. Default is -1, which matches every variant.

boolean = false

Optional. Whether to update the room after the trapdoors are removed. Default is false. For more information, see the description of the removeGridEntities helper function.

int

Optional. If specified, will only remove the given amount of trapdoors.

readonly GridEntity[]

The trapdoors that were removed.


spawnCrawlSpace(gridIndexOrPosition): GridEntity | undefined

Defined in: packages/isaacscript-common/src/functions/gridEntitiesSpecific.ts:387

Helper function to spawn a GridEntityType.CRAWL_SPACE (18).

int | Vector

GridEntity | undefined


spawnCrawlSpaceWithVariant(crawlSpaceVariant, gridIndexOrPosition): GridEntity | undefined

Defined in: packages/isaacscript-common/src/functions/gridEntitiesSpecific.ts:397

Helper function to spawn a GridEntityType.CRAWL_SPACE (18) with a specific variant.

CrawlSpaceVariant

int | Vector

GridEntity | undefined


spawnDoor(gridIndexOrPosition): GridEntityDoor | undefined

Defined in: packages/isaacscript-common/src/functions/gridEntitiesSpecific.ts:409

Helper function to spawn a GridEntityType.PIT (7) with a specific variant.

int | Vector

GridEntityDoor | undefined


spawnDoorWithVariant(doorVariant, gridIndexOrPosition): GridEntityDoor | undefined

Defined in: packages/isaacscript-common/src/functions/gridEntitiesSpecific.ts:416

Helper function to spawn a GridEntityType.DOOR (16).

DoorVariant

int | Vector

GridEntityDoor | undefined


spawnPit(gridIndexOrPosition): GridEntityPit | undefined

Defined in: packages/isaacscript-common/src/functions/gridEntitiesSpecific.ts:436

Helper function to spawn a GridEntityType.DOOR (16) with a specific variant.

int | Vector

GridEntityPit | undefined


spawnPitWithVariant(pitVariant, gridIndexOrPosition): GridEntityPit | undefined

Defined in: packages/isaacscript-common/src/functions/gridEntitiesSpecific.ts:443

Helper function to spawn a GridEntityType.PIT (7) with a specific variant.

PitVariant

int | Vector

GridEntityPit | undefined


spawnPoop(gridIndexOrPosition): GridEntityPoop | undefined

Defined in: packages/isaacscript-common/src/functions/gridEntitiesSpecific.ts:463

Helper function to spawn a GridEntityType.POOP (14).

int | Vector

GridEntityPoop | undefined


spawnPoopWithVariant(poopVariant, gridIndexOrPosition): GridEntityPoop | undefined

Defined in: packages/isaacscript-common/src/functions/gridEntitiesSpecific.ts:473

Helper function to spawn a GridEntityType.POOP (14) with a specific variant.

PoopGridEntityVariant

int | Vector

GridEntityPoop | undefined


spawnPressurePlate(gridIndexOrPosition): GridEntityPressurePlate | undefined

Defined in: packages/isaacscript-common/src/functions/gridEntitiesSpecific.ts:493

Helper function to spawn a GridEntityType.PRESSURE_PLATE (20).

int | Vector

GridEntityPressurePlate | undefined


spawnPressurePlateWithVariant(pressurePlateVariant, gridIndexOrPosition): GridEntityPressurePlate | undefined

Defined in: packages/isaacscript-common/src/functions/gridEntitiesSpecific.ts:503

Helper function to spawn a GridEntityType.PRESSURE_PLATE (20) with a specific variant.

PressurePlateVariant

int | Vector

GridEntityPressurePlate | undefined


spawnRock(gridIndexOrPosition): GridEntityRock | undefined

Defined in: packages/isaacscript-common/src/functions/gridEntitiesSpecific.ts:523

Helper function to spawn a GridEntityType.ROCK (2).

int | Vector

GridEntityRock | undefined


spawnRockWithVariant(rockVariant, gridIndexOrPosition): GridEntityRock | undefined

Defined in: packages/isaacscript-common/src/functions/gridEntitiesSpecific.ts:530

Helper function to spawn a GridEntityType.ROCK (2) with a specific variant.

RockVariant

int | Vector

GridEntityRock | undefined


spawnSpikes(gridIndexOrPosition): GridEntitySpikes | undefined

Defined in: packages/isaacscript-common/src/functions/gridEntitiesSpecific.ts:550

Helper function to spawn a GridEntityType.SPIKES (8).

int | Vector

GridEntitySpikes | undefined


spawnSpikesWithVariant(variant, gridIndexOrPosition): GridEntitySpikes | undefined

Defined in: packages/isaacscript-common/src/functions/gridEntitiesSpecific.ts:557

Helper function to spawn a GridEntityType.SPIKES (8) with a specific variant.

int

int | Vector

GridEntitySpikes | undefined


spawnTeleporter(gridIndexOrPosition): GridEntity | undefined

Defined in: packages/isaacscript-common/src/functions/gridEntitiesSpecific.ts:577

Helper function to spawn a GridEntityType.TELEPORTER (23).

int | Vector

GridEntity | undefined


spawnTeleporterWithVariant(variant, gridIndexOrPosition): GridEntity | undefined

Defined in: packages/isaacscript-common/src/functions/gridEntitiesSpecific.ts:584

Helper function to spawn a GridEntityType.TELEPORTER (23) with a specific variant.

int

int | Vector

GridEntity | undefined


spawnTNT(gridIndexOrPosition): GridEntityTNT | undefined

Defined in: packages/isaacscript-common/src/functions/gridEntitiesSpecific.ts:596

Helper function to spawn a GridEntityType.TNT (12).

int | Vector

GridEntityTNT | undefined


spawnTNTWithVariant(variant, gridIndexOrPosition): GridEntityTNT | undefined

Defined in: packages/isaacscript-common/src/functions/gridEntitiesSpecific.ts:603

Helper function to spawn a GridEntityType.TNT (12) with a specific variant.

int

int | Vector

GridEntityTNT | undefined


spawnTrapdoor(gridIndexOrPosition): GridEntity | undefined

Defined in: packages/isaacscript-common/src/functions/gridEntitiesSpecific.ts:623

Helper function to spawn a GridEntityType.TRAPDOOR (17).

int | Vector

GridEntity | undefined


spawnTrapdoorWithVariant(trapdoorVariant, gridIndexOrPosition): GridEntity | undefined

Defined in: packages/isaacscript-common/src/functions/gridEntitiesSpecific.ts:633

Helper function to spawn a GridEntityType.TRAPDOOR (17) with a specific variant.

TrapdoorVariant

int | Vector

GridEntity | undefined