withdrawAll

open fun withdrawAll(itemId: Int): Boolean

Withdraws all of an item with the specified id

Return

true if withdrawn successfully, false otherwise

Parameters

itemId

the item id


open fun withdrawAll(itemName: String): Boolean

Withdraws all of an item with the specified name

Return

true if withdrawn successfully, false otherwise

Parameters

itemName

the item name


open fun withdrawAll(item: Item): Boolean

Withdraws all of the specified item

Return

true if withdrawn successfully, false otherwise

Parameters

item

the item to withdraw