countStacks
countStacks(
slots,item):number
The copies of item across slots, whatever each copy’s data: a
bag’s trait, or the copy of it a view reads.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
slots |
readonly (ItemStack | null)[] |
item |
string |
Returns
Section titled “Returns”number