use of forestry.core.recipes.ShapedRecipeCustom in project ForestryMC by ForestryMC.
the class FabricatorRecipeManager method addRecipe.
@Override
public void addRecipe(ItemStack plan, FluidStack molten, ItemStack result, Object[] pattern) {
ShapedRecipeCustom patternRecipe = new ShapedRecipeCustom(result, pattern);
NonNullList<NonNullList<ItemStack>> ingredients = patternRecipe.getRawIngredients();
IFabricatorRecipe recipe = new FabricatorRecipe(plan, molten, result, ingredients, patternRecipe.getOreDicts(), patternRecipe.getWidth(), patternRecipe.getHeight());
addRecipe(recipe);
}
Aggregations