deposit
static boolean deposit(int itemId, int amount)
Content copied to clipboard
Deposits the specified amount of an item with the specified id
Return
true if deposited successfully, false otherwise
Parameters
itemId
the item id
amount
the amount to deposit
Deposits the specified amount of an item with the specified name
Return
true if deposited successfully, false otherwise
Parameters
itemName
the item name
amount
the amount to deposit
Deposits the specified quantity of the specified item
Return
true if deposited successfully, false otherwise
Parameters
item
the item to deposit
amount
the amount to deposit