Class CustomProductItemCreator
Creates generic non-mixable custom product definitions.
public static class CustomProductItemCreator
- Inheritance
-
CustomProductItemCreator
- Inherited Members
Methods
CreateBuilder(string, ProductKind)
Creates a builder for a generic custom product.
public static CustomProductDefinitionBuilder CreateBuilder(string id, ProductKind productKind)
Parameters
idstringA stable namespaced product ID in
mod-id:product-idform.productKindProductKindThe registered logical product kind, including the vanilla compatibility drug type required by native save and product-item data.
Returns
- CustomProductDefinitionBuilder
A new custom product definition builder.
Remarks
Keep this durable ID namespaced for saves and multiplayer. If you do
not want to type the namespace when testing through the console,
register the short name with
ConsoleItemAliases after
Build() so
give <alias> resolves it locally.