deposit all:
1) sift through each slot in your inventory
2) invoke the 'additem' method for that slot as if you were to click it manually
opposite of that code to withdraw allCode:public void depositall() { for (int slot = 0; slot < player.playerItems.length; slot++) { if (player.playerItems[slot] > 0 && player.playerItemsN[slot] > 0) { session.addItem(c, new GameItem(player.playerItems[slot] - 1, player.playerItemsN[slot])); } } }