When you buy an item from a shop, it removed it from the store and adds it into your inventory. What is the name of the function that adds the item to your inventory? What class is that function in?

EDIT: Nvm, I figured it out.