public <T extends Item & IToolPart> void addCombination(ToolCore toolCore, T toolPart) { toolCores.add(toolCore); ItemStack toolPartItem = toolPart.getItemstackWithMaterial(material); List<ItemStack> stacks = new ArrayList<>(); stacks.add(toolPartItem); stacks.addAll(EMBOSSMENT_ITEMS); addRecipeMatch(new RecipeMatch.ItemCombination(1, stacks.toArray(new ItemStack[stacks.size()]))); }