Table of Contents

Class AdditiveItemCreator

Namespace
S1API.Items
Assembly
S1API.dll

Provides convenient static methods for creating custom additive items. Use CreateBuilder() for creating additives from scratch, or CloneFrom(string) for variants.

[Obsolete("Use S1API.Items.Additive.AdditiveItemCreator instead")]
public static class AdditiveItemCreator
Inheritance
AdditiveItemCreator
Inherited Members

Methods

CloneFrom(AdditiveDefinition)

Creates a new additive builder by cloning an existing additive wrapper.

public static AdditiveDefinitionBuilder CloneFrom(AdditiveDefinition source)

Parameters

source AdditiveDefinition

The additive definition to clone from.

Returns

AdditiveDefinitionBuilder

A builder pre-configured with the source additive's properties.

CloneFrom(string)

Creates a new additive builder by cloning an existing additive by ID.

public static AdditiveDefinitionBuilder CloneFrom(string sourceItemId)

Parameters

sourceItemId string

The ID of the additive to clone.

Returns

AdditiveDefinitionBuilder

A builder pre-configured with the source additive's properties.

Exceptions

ArgumentException

Thrown if the source item does not exist or is not an additive.

CreateBuilder()

Creates a new builder for composing an additive definition with full flexibility. Use fluent methods to configure the additive, then call Build() to register it.

public static AdditiveDefinitionBuilder CreateBuilder()

Returns

AdditiveDefinitionBuilder