Slots
Functions
Section titled “Functions”getSlotName()
Section titled “getSlotName()”getSlotName(
slotVariant):string
Defined in: packages/isaacscript-common/src/functions/slots.ts:27
Helper function to get the name of a slot, as listed in the “entities2.xml” file. Returns “Unknown” if the provided slot variant is not valid.
This function only works for vanilla slot variants.
For example, getSlotName(SlotVariant.BLOOD_DONATION_MACHINE) would return “Blood Donation
Machine”.
Parameters
Section titled “Parameters”slotVariant
Section titled “slotVariant”SlotVariant
Returns
Section titled “Returns”string
isSlotMachine()
Section titled “isSlotMachine()”isSlotMachine(
entity):boolean
Defined in: packages/isaacscript-common/src/functions/slots.ts:34
Returns true for the specific variants of EntityType.SLOT that are machines.
Parameters
Section titled “Parameters”entity
Section titled “entity”Entity
Returns
Section titled “Returns”boolean
