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(FurnitureType, int, float, TimeSpan)
Creates a new woodworking recipe with the given settings
public WoodworkingRecipe(FurnitureType output, int requiredLevel, float priceMultiplier, TimeSpan craftingTime)
Parameters
output
FurnitureTypeThe recipe's output
requiredLevel
intThe required Woodworking skill level
priceMultiplier
floatA value that is multiplied with the Output's regular price to determine the price of crafting this woodworking recipe
craftingTime
TimeSpanThe 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
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
Properties
Name
public string Name { get; }
Property Value
Methods
Register(WoodworkingRecipe)
Registers a new woodworking recipe to the Types registry
public static WoodworkingRecipe Register(WoodworkingRecipe recipe)
Parameters
recipe
WoodworkingRecipeThe recipe to register
Returns
- WoodworkingRecipe
The
recipe
passed, for chaining