package com.yolp900.itsjustacharm.common.integration.jei.constructionTable;
import com.yolp900.itsjustacharm.api.ItsJustaCharmAPI;
import com.yolp900.itsjustacharm.api.constructionTable.RecipeBaseConstructionTable;
import com.yolp900.itsjustacharm.api.constructionTable.RecipeShapelessConstructionTable;
import net.minecraft.item.ItemStack;
import javax.annotation.Nonnull;
import java.util.ArrayList;
import java.util.List;
public class RecipeMakerConstructionTable {
@Nonnull
public static List<RecipeWrapperConstructionTable> getRecipes() {
ArrayList<RecipeWrapperConstructionTable> recipes = new ArrayList<RecipeWrapperConstructionTable>();
for (RecipeBaseConstructionTable recipe : ItsJustaCharmAPI.ConstructionTable.constructionTableRecipes) {
ItemStack output = recipe.getOutput();
Object[] gridInputs = recipe.getGridInputs();
Object[] secInputs = recipe.getSecInputs();
boolean shapeless = recipe instanceof RecipeShapelessConstructionTable;
RecipeWrapperConstructionTable jeiRecipe = new RecipeWrapperConstructionTable(output, gridInputs, secInputs, shapeless);
recipes.add(jeiRecipe);
}
return recipes;
}
}