Class WoodworkingRecipe
A woodworking recipe stores information about what items can be crafted at a WoodworkingTable. New woodworking recipes for custom (or built-in) furniture items can be registered using Register(WoodworkingRecipe).
[JsonConverter(typeof(MigratingStaticJsonConverter<WoodworkingRecipe>), new object[] { typeof(WoodworkingRecipe), "PrivateRecipes", true })]
public class WoodworkingRecipe
- Inheritance
-
WoodworkingRecipe
- Inherited Members
- Extension Methods
Constructors
WoodworkingRecipe(string, FurnitureType, int, float, TimeSpan)
Creates a new woodworking recipe with the given settings
public WoodworkingRecipe(string name, FurnitureType output, int requiredLevel, float priceMultiplier, TimeSpan craftingTime)
Parameters
namestringThe name of this woodworking recipe, which it is registered into the Recipes collection under.
outputFurnitureTypeThe recipe's output
requiredLevelintThe required Woodworking skill level
priceMultiplierfloatA value that is multiplied with the Output's regular price to determine the price of crafting this woodworking recipe
craftingTimeTimeSpanThe amount of in-game time that it takes (an unskilled person) to craft this woodwork
Fields
CraftingTime
The amount of in-game time that it takes (an unskilled person) to craft this woodwork. The higher the Woodworking level of the person, the more this time is reduced, based on GetEfficiencyModifier(float, ActionInfo, SkillType, float).
public readonly TimeSpan CraftingTime
Field Value
Name
The name of this woodworking recipe, which it is registered into the Recipes collection under.
public readonly string Name
Field Value
Output
The FurnitureType that this woodworking recipe produces
public readonly FurnitureType Output
Field Value
PriceMultiplier
A value that is multiplied with the Output's regular price to determine the price of crafting this woodworking recipe
public readonly float PriceMultiplier
Field Value
Recipes
A registry of all of the recipes that have been registered using Register(WoodworkingRecipe)
public static readonly ReadOnlyDictionary<string, WoodworkingRecipe> Recipes
Field Value
RequiredLevel
The required level of the Woodworking skill
public readonly int RequiredLevel
Field Value
Methods
Register(WoodworkingRecipe)
Registers a new woodworking recipe to the Types registry
public static WoodworkingRecipe Register(WoodworkingRecipe recipe)
Parameters
recipeWoodworkingRecipeThe recipe to register
Returns
- WoodworkingRecipe
The
recipepassed, for chaining