use of yamahari.ilikewood.registry.objecttype.WoodenBlockType in project Mekanism by mekanism.
the class ILikeWoodRecipeProvider method addBedRecipe.
private static void addBedRecipe(Consumer<IFinishedRecipe> consumer, ICondition condition, IItemProvider planks, IWoodType woodType, EnumColor color, String basePath) {
DyeColor dye = color.getDyeColor();
if (dye != null) {
WoodenBlockType bedType = getBedType(dye);
Block bed = ILikeWood.getBlock(woodType, bedType);
RecipeProviderUtil.addPrecisionSawmillBedRecipe(consumer, basePath, bed, planks, dye, condition);
ItemStackChemicalToItemStackRecipeBuilder.painting(ItemStackIngredient.from(Ingredient.of(WoodenBlockType.getBeds().filter(b -> !b.equals(bedType)).map(b -> new ItemStack(ILikeWood.getBlock(woodType, b))))), PigmentStackIngredient.from(MekanismPigments.PIGMENT_COLOR_LOOKUP.get(color), PigmentExtractingRecipeProvider.DYE_RATE), new ItemStack(bed)).addCondition(condition).build(consumer, Mekanism.rl(basePath + "painting/" + color.getRegistryPrefix()));
}
}
Aggregations