Class ChemistryStationRecipeBuilder
Builder for creating Chemistry Station recipes at runtime.
public sealed class ChemistryStationRecipeBuilder
- Inheritance
-
ChemistryStationRecipeBuilder
- Inherited Members
- Extension Methods
Constructors
ChemistryStationRecipeBuilder()
public ChemistryStationRecipeBuilder()
Methods
Build()
Builds and auto-registers the recipe with S1API.
public ChemistryStationRecipe Build()
Returns
WithCalculationMethod(QualityCalculationMethod)
Sets the quality calculation method.
public ChemistryStationRecipeBuilder WithCalculationMethod(QualityCalculationMethod method)
Parameters
methodQualityCalculationMethod
Returns
WithCookTimeMinutes(int)
Sets the cook time (minutes).
public ChemistryStationRecipeBuilder WithCookTimeMinutes(int minutes)
Parameters
minutesint
Returns
WithFinalLiquidColor(Color)
Sets the final liquid UI color.
public ChemistryStationRecipeBuilder WithFinalLiquidColor(Color color)
Parameters
colorColor
Returns
WithIngredient(string, int)
Adds a single ingredient requirement.
public ChemistryStationRecipeBuilder WithIngredient(string itemId, int quantity)
Parameters
Returns
WithIngredientOptions(IEnumerable<string>, int)
Adds an ingredient requirement with multiple acceptable item IDs (variants).
public ChemistryStationRecipeBuilder WithIngredientOptions(IEnumerable<string> itemIds, int quantity)
Parameters
itemIdsIEnumerable<string>quantityint
Returns
WithProduct(string, int)
Sets the product produced by the recipe.
public ChemistryStationRecipeBuilder WithProduct(string itemId, int quantity)
Parameters
Returns
WithTemperature(float, float)
Sets the cook temperature and tolerance.
public ChemistryStationRecipeBuilder WithTemperature(float cookTemperature, float tolerance)
Parameters
Returns
WithTitle(string)
Sets the UI title for the recipe.
public ChemistryStationRecipeBuilder WithTitle(string title)
Parameters
titlestring