Search in sources :

Example 1 with BookRecipe

use of toolbox.common.recipes.BookRecipe in project Adventurers-Toolbox by the-realest-stu.

the class ToolboxJEIPlugin method register.

@Override
public void register(IModRegistry reg) {
    IJeiHelpers helper = reg.getJeiHelpers();
    IGuiHelper guiHelper = helper.getGuiHelper();
    reg.handleRecipes(BookRecipe.class, new IRecipeWrapperFactory<BookRecipe>() {

        @Override
        public IRecipeWrapper getRecipeWrapper(BookRecipe recipe) {
            return new GuideBookRecipeWrapper();
        }
    }, VanillaRecipeCategoryUid.CRAFTING);
}
Also used : IGuiHelper(mezz.jei.api.IGuiHelper) BookRecipe(toolbox.common.recipes.BookRecipe) IRecipeWrapper(mezz.jei.api.recipe.IRecipeWrapper) IJeiHelpers(mezz.jei.api.IJeiHelpers)

Aggregations

IGuiHelper (mezz.jei.api.IGuiHelper)1 IJeiHelpers (mezz.jei.api.IJeiHelpers)1 IRecipeWrapper (mezz.jei.api.recipe.IRecipeWrapper)1 BookRecipe (toolbox.common.recipes.BookRecipe)1