depositAllExcept

open fun depositAllExcept(names: Array<String>): Int

Deposits all of the inventory items.

Return

The amount of items deposited. Takes item stack into account.

Parameters

names

The names of the items to exclude. Do not input anything to deposit the whole inventory.


open fun depositAllExcept(ids: Array<Int>): Int

Deposits all of the inventory items.

Return

The amount of items deposited. Takes item stack into account.

Parameters

ids

The IDs of the items to exclude. Do not input anything to deposit the whole inventory.