Table of Contents

Class GrowContainerAdditives

Namespace
S1API.Growing
Assembly
S1API.dll

Global registry for additive IDs that should be allowed on all grow containers. These IDs are applied to GrowContainer.AllowedAdditives during GrowContainer.InitializeGridItem.

public static class GrowContainerAdditives
Inheritance
GrowContainerAdditives
Inherited Members

Methods

AllowAdditive(string)

Registers an additive item ID as allowed on all grow containers (idempotent).

public static void AllowAdditive(string additiveItemId)

Parameters

additiveItemId string

Remarks

Recommended timing: call during OnPreLoad (or earlier).

GetAllowedAdditiveIds()

Returns a snapshot of allowed additive IDs registered via S1API.

public static IReadOnlyList<string> GetAllowedAdditiveIds()

Returns

IReadOnlyList<string>