S9SourceNine Labs / CMAPI Docs 1.1
CMAPI / API reference

InventorySafetyIssue

Describes an inventory which is not currently vanilla-safe.

View source ↗
CMAPI 1.1.4Standalone runtimeWindows x64Tested with Planet Crafter 2.008
Namespace CMAPIClassAssembly CMAPI.API.dll
public sealed class InventorySafetyIssue

Describes an inventory which is not currently vanilla-safe.

Members

InventoryId

property
public int InventoryId

Gets the game's inventory identifier.

Kind

property
public InventoryKind Kind

Gets the detected native inventory role.

NativeCapacity

property
public int NativeCapacity

Gets the inventory's native slot capacity.

PhysicalItemCount

property
public int PhysicalItemCount

Gets the number of individual world objects stored by the game.

OverflowCount

property
public int OverflowCount => PhysicalItemCount - NativeCapacity

Gets the number of items beyond native capacity.

InventorySafetyIssue

method
public InventorySafetyIssue( int inventoryId, InventoryKind kind, int nativeCapacity, int physicalItemCount)

Creates an immutable vanilla-safety issue.