use of com.lowdragmc.multiblocked.jei.recipeppage.RecipeWrapper in project Multiblocked by Low-Drag-MC.
the class JEIPlugin method registerRecipes.
@Override
public void registerRecipes(@Nonnull IRecipeRegistration registration) {
Multiblocked.LOGGER.info("JEI register");
for (RecipeMap recipeMap : RecipeMap.RECIPE_MAP_REGISTRY.values()) {
if (recipeMap == RecipeMap.EMPTY)
continue;
registration.addRecipes(recipeMap.recipes.values().stream().map(recipe -> new RecipeWidget(recipe, recipeMap.progressTexture)).map(RecipeWrapper::new).collect(Collectors.toList()), new ResourceLocation(Multiblocked.MODID, recipeMap.name));
}
MultiblockInfoCategory.registerRecipes(registration);
}
Aggregations