depositAll

open fun depositAll(itemId: Int): Boolean

Deposits all of an item with the specified id

Return

true if deposited successfully, false otherwise

Parameters

itemId

the item id


open fun depositAll(itemName: String): Boolean

Deposits all of an item with the specified name

Return

true if deposited successfully, false otherwise

Parameters

itemName

the item name


Deposits all of the specified item

Return

true if deposited successfully, false otherwise

Parameters

item

the item to deposit