Search in sources :

Example 1 with ShapedRecipeCustom

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);
}
Also used : NonNullList(net.minecraft.util.NonNullList) IFabricatorRecipe(forestry.api.recipes.IFabricatorRecipe) IFabricatorRecipe(forestry.api.recipes.IFabricatorRecipe) ShapedRecipeCustom(forestry.core.recipes.ShapedRecipeCustom)

Aggregations

IFabricatorRecipe (forestry.api.recipes.IFabricatorRecipe)1 ShapedRecipeCustom (forestry.core.recipes.ShapedRecipeCustom)1 NonNullList (net.minecraft.util.NonNullList)1