This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
Hi all
I'm new to modding, so please bear with me
I'm trying to create an item with a gui containing 10 slots: 1 for an item and 9 for the item's ingredients. Users will click the "+" on the recipe from JEI and the item and ingredients will be populated on the card.
I have the following classes:
The item
The container
getCapability(CapabilityItemHandler.ITEM_HANDLER_CAPABILITY ...)
The screen
The RecipeTransferHandler
implements IRecipeTransferHandler<Container>
And that's as far as I got. I'm looking for help to know what happens next.
Currently, I'm able to run the code, open the GUI, select an item and click the "+" button, but nothing happens.
How do I get it to insert the items into the slots in the GUI? Is there an event that gets fired?
Thanks
Adam
Hi all
I'm new to modding, so please bear with me
I'm trying to create an item with a gui containing 10 slots: 1 for an item and 9 for the item's ingredients. Users will click the "+" on the recipe from JEI and the item and ingredients will be populated on the card.
I have the following classes:
The item
The container
The screen
The RecipeTransferHandler
And that's as far as I got. I'm looking for help to know what happens next.
Currently, I'm able to run the code, open the GUI, select an item and click the "+" button, but nothing happens.
How do I get it to insert the items into the slots in the GUI? Is there an event that gets fired?
Thanks
Adam