How do you retrieve an item from a config string?

I want to make a new recipe.

It is crafted as follows (where x is a configurable item, and y is a players head):


First, i need to parse to an ItemStack from a string. (ItemType i believe?)

Then, i need to register my custom recipe class in the main class.

I have the base of this coded but im no good at dedcrypting java-docs. Any help would be greatly appreciated.

You can see some documentation written by @mumfrey available on his ā€œQueryable Unified Inventory APIā€ pull request. Currently, Iā€™m not sure that the Sponge docs cover custom recipes in detail.

Thanks for the response, i will check it out when im home.