Search in sources :

Example 1 with RecipeMapCategory

use of com.lowdragmc.multiblocked.jei.recipeppage.RecipeMapCategory in project Multiblocked by Low-Drag-MC.

the class JEIPlugin method registerCategories.

@Override
public void registerCategories(@Nonnull IRecipeCategoryRegistration registry) {
    Multiblocked.LOGGER.info("JEI register categories");
    IJeiHelpers jeiHelpers = registry.getJeiHelpers();
    registry.addRecipeCategories(new MultiblockInfoCategory(jeiHelpers));
    for (RecipeMap recipeMap : RecipeMap.RECIPE_MAP_REGISTRY.values()) {
        if (recipeMap == RecipeMap.EMPTY)
            continue;
        registry.addRecipeCategories(new RecipeMapCategory(jeiHelpers, recipeMap));
    }
}
Also used : MultiblockInfoCategory(com.lowdragmc.multiblocked.jei.multipage.MultiblockInfoCategory) RecipeMapCategory(com.lowdragmc.multiblocked.jei.recipeppage.RecipeMapCategory) IJeiHelpers(mezz.jei.api.helpers.IJeiHelpers) RecipeMap(com.lowdragmc.multiblocked.api.recipe.RecipeMap)

Aggregations

RecipeMap (com.lowdragmc.multiblocked.api.recipe.RecipeMap)1 MultiblockInfoCategory (com.lowdragmc.multiblocked.jei.multipage.MultiblockInfoCategory)1 RecipeMapCategory (com.lowdragmc.multiblocked.jei.recipeppage.RecipeMapCategory)1 IJeiHelpers (mezz.jei.api.helpers.IJeiHelpers)1