item
This function is used to add an item to the inventory
Return
The current instance
Parameters
slot
The slot in which the item should be placed
inventory Item
The item to be placed in the slot
This function is used to add an item to the inventory
The current instance
The slot in which the item should be placed
The item to be placed in the slot