I'm trying to make a system that will go to the chest automatically and put all the items in the chest. However, I can't check if the inventory is full. I tried:
Minecraft.getMinecraft().player.inventoryContainer.getSlot(i).getStack().getCount() (with for)
Minecraft.getMinecraft().player.inventoryContainer.getSlot(i).getStack().isEmpty() (with for)
It either just doesn't work, or doesn't work with a huge bunch of exceptions in the logs
I need to check if there are any items in the inventory slots, without slots for armor and left hand.
Doing all this on 1.12.2, 18.104.22.16860
Thanks for taking the time for a little dumb me