Stores the ItemStack at the given index of the inventory.
The index where to put the ItemStack
The ItemStack to set