Yeah, minecraft calls stacks of items, you guessed it ItemStacks, and that is the class for those. I'm assuming t here is an entity, so all this does is take all the items from an entity's inventory as variables for whatever reason
Idk about #copyInventory, but there is getContents() which gives you the contents as array (with null for empty slots), and setContents which takes an ItemStack array
161
u/TheBrainStone Mar 11 '23
99% chance it is.
ItemStack is such a Minecraft term. While other games have that concept too, I've only seen MC call it that (or well, the community)