Table of Contents

Class ChemistryStationRecipe

Namespace
S1API.Stations
Assembly
S1API.dll

Wrapper for a Chemistry Station recipe (StationRecipe).

public sealed class ChemistryStationRecipe
Inheritance
ChemistryStationRecipe
Inherited Members
Extension Methods

Properties

CookTimeMinutes

Cook time in minutes.

public int CookTimeMinutes { get; }

Property Value

int

FinalLiquidColor

UI liquid color for the final product.

public Color FinalLiquidColor { get; }

Property Value

Color

Ingredients

Ingredient groups required by this recipe. Each group can have multiple acceptable item IDs (variants).

public IReadOnlyList<ChemistryStationRecipeIngredient> Ingredients { get; }

Property Value

IReadOnlyList<ChemistryStationRecipeIngredient>

IsDiscovered

Whether the recipe is currently discovered and visible to the player.

public bool IsDiscovered { get; }

Property Value

bool

IsUnlocked

Whether the recipe is currently unlocked for use.

public bool IsUnlocked { get; }

Property Value

bool

Product

The product produced by this recipe.

public ChemistryStationRecipeProduct Product { get; }

Property Value

ChemistryStationRecipeProduct

QualityCalculationMethod

Calculation method used when determining resulting product's quality.

public QualityCalculationMethod QualityCalculationMethod { get; }

Property Value

QualityCalculationMethod

RecipeID

Stable recipe identifier. This is the explicit namespaced ID supplied by the builder, or the legacy "{quantity}x{productId}" value when omitted.

public string RecipeID { get; }

Property Value

string

S1ProductItem

Returns the native product item definition.

public ItemDefinition? S1ProductItem { get; }

Property Value

ItemDefinition

Temperature

Temperatures required by the recipe.

public ChemistryStationRecipeTemperature Temperature { get; }

Property Value

ChemistryStationRecipeTemperature

Title

Display title shown in the Chemistry Station UI.

public string Title { get; }

Property Value

string

Methods

SetAvailability(bool, bool)

Changes the local recipe discovery and unlock state.

public void SetAvailability(bool isDiscovered, bool isUnlocked)

Parameters

isDiscovered bool

Whether the recipe is visible to the player.

isUnlocked bool

Whether the recipe can be selected and started.

Remarks

Custom recipes are registered independently on every peer. Mods should apply progression-driven availability on each peer after its saved state has loaded.