Posted March 7, 20169 yr Hey everyone, I am working on my guicontainer using the new capabilities system. I feel retarded to ask this, but how do I get an IInventory from the IItemHandler, since I need it to add slots to the container.. Thanks for every hint I get ! for (int i = 0; i < handler.getSlots(); i++) { addSlotToContainer(new Slot(handler, i, 10, 10)); }
March 7, 20169 yr Use SlotItemHandler instead of Slot . Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.