Gets the total size of the Inventory. The player's inventory size is 36, 27 for the main inventory, plus 9 for the hotbar. A single chest's size would be 63, because it also counts the player's inventory.
the size of the Inventory