Class RecipeData
A class that fully describes a recipe for a TechType identified item.
  
  public class RecipeData- Inheritance
- 
      
      RecipeData
- Inherited Members
- Extension Methods
Constructors
RecipeData()
Initializes a new instance of the RecipeData class a custom recipe.
  
  public RecipeData()RecipeData(params Ingredient[])
Initializes a new instance of the RecipeData class for a custom recipe with a collection of ingridients.
  
  public RecipeData(params Ingredient[] ingredients)Parameters
- ingredientsIngredient[]
- The ingredients.
RecipeData(List<Ingredient>)
Initializes a new instance of the RecipeData class for a custom recipe with a list of ingridients.
  
  public RecipeData(List<Ingredient> ingredients)Parameters
- ingredientsList<Ingredient>
- The ingredients.
Fields
Ingredients
The list of ingredients required for this recipe.
  
  [JsonProperty]
public List<Ingredient> IngredientsField Value
- List<Ingredient>
LinkedItems
The items that will also be created when this recipe is crafted.
  
  [JsonProperty]
public List<TechType> LinkedItemsField Value
- List<TechType>
Properties
craftAmount
Gets or sets the how many copies of the item are created when crafting this recipe.
  
  [JsonProperty]
public int craftAmount { get; set; }Property Value
- int
- The quantity of the item this recipe yields.
ingredientCount
Gets the number of different ingredients for this recipe.
  
  [JsonIgnore]
public int ingredientCount { get; }Property Value
- int
- The number of ingredients for this recipe.
linkedItemCount
Gets the number of items linked to this recipe.
  
  [JsonIgnore]
public int linkedItemCount { get; }Property Value
- int
- The number of linked items.
Methods
GetIngredient(int)
Gets the ingredient at the specified index.
  
  public Ingredient GetIngredient(int index)Parameters
- indexint
- The index.
Returns
- Ingredient
- The Ingredient at the requested the index if the index is value; Otherwise returns null.
GetLinkedItem(int)
Gets the linked item at the specified index.
  
  public TechType GetLinkedItem(int index)Parameters
- indexint
- The index.
Returns
- TechType
- The TechType at the requested the index if the index is value; Otherwise returns null.