Search in sources :

Example 1 with SawmillRecipeBuilder

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));
}
Also used : SawmillRecipeBuilder(mekanism.api.datagen.recipe.builder.SawmillRecipeBuilder) ItemStack(net.minecraft.item.ItemStack)

Aggregations

SawmillRecipeBuilder (mekanism.api.datagen.recipe.builder.SawmillRecipeBuilder)1 ItemStack (net.minecraft.item.ItemStack)1