Inventory Component Helper page - UQdeco2800/2022-studio-2 GitHub Wiki
How to use inventory methods
In order to add an item to the player's inventory. Firstly, get the current player Entity using:
ServiceLocator.getGameArea().getPlayer();
ServiceLocator.getGameArea().getPlayer().getComponent(InventoryComponent.class);
Adding and removing items
Author
- Li-Sung Ou
- GitHub: @PeterOu8
- Discord: Secret Agent Randy Beans#6754
- Slack: Li-Sung Ou