When I try to get the stacks from my inventory capability all are empty. If I open the associated container (extends Container, not IItemHandler) though, and some slots are instantiated and added, the inventory capability with the method getStackInSlot for some reason returns the proper stacks. I havent been able to debug yet what really makes the Slot .
Is there something I can do to load the contents of the IItemHandler capability? Iterating through the slots (and getting them) does not work (that returns empty stacks). Is this a somewhat known bug/misuse and (how) can I debug this better?
I copied the code from here:
https://github.com/Azanor/Baubles
Here is the capability code:
https://github.com/Azanor/Baubles/tree/master/src/main/java/baubles/api/cap
and here the container/slot code:
https://github.com/Azanor/Baubles/tree/master/src/main/java/baubles/common/container
(it is possible I have missed something when copying and also checking that I didnt forget something later)
Many thanks