use of mekanism.api.datagen.recipe.builder.SawmillRecipeBuilder in project Mekanism by mekanism.
the class RecipeProviderUtil method addPrecisionSawmillBedRecipe.
public static void addPrecisionSawmillBedRecipe(Consumer<IFinishedRecipe> consumer, String basePath, IItemProvider bed, IItemProvider planks, DyeColor color, @Nullable ICondition condition) {
SawmillRecipeBuilder bedRecipeBuilder = SawmillRecipeBuilder.sawing(ItemStackIngredient.from(bed), new ItemStack(planks, 3), new ItemStack(getWool(color), 3), 1);
if (condition != null) {
bedRecipeBuilder.addCondition(condition);
}
bedRecipeBuilder.build(consumer, Mekanism.rl(basePath + color));
}
Aggregations