Skip to content

five-on-it / packages/sim/src/items / takeSlot

Function: takeSlot() ​

takeSlot(slots, index, count?): ItemStack

Defined in: packages/sim/src/items.ts:331

Takes up to count (the whole stack by default) out of one slot; returns what it took.

Parameters ​

slots ​

ItemStack[]

index ​

number

count? ​

number = Infinity

Returns ​

ItemStack