Hello, i am learning to making mods in forge, and i gave myself a challenge to make mod checking if there is opened inventory and if Yes, its stealing pumpkin but i dont know how to check if inventory is opened, loop through slots and move item from other inventory to Player inv. Pls help here's my code :
https://pastebin.com/9uPs7BTr