itemStack
An itemStack is a fundamental data structure commonly found in video games, particularly those with inventory systems. It represents a collection of identical items that are stored together. Instead of having individual entries for each sword in a player's inventory, for example, an itemStack might represent "5 Iron Swords" as a single entry.
The core components of an itemStack are typically the item type itself and a quantity. The item
When an itemStack reaches a predefined maximum capacity, a new itemStack of the same item type is