S9SourceNine Labs / CMAPI Docs 1.0
CMAPI / API reference

PlayerInventoryChangedEvent

Describes one native local-player inventory modification.

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

Describes one native local-player inventory modification.

Members

Kind

property
public PlayerInventoryKind Kind

Gets the inventory which changed.

ItemId

property
public string ItemId

Gets the affected item's stable game group ID.

ItemDisplayName

property
public string ItemDisplayName

Gets the affected item's localized display name.

WasAdded

property
public bool WasAdded

Gets whether an item was added; false means it was removed.

Inventory

property
public PlayerInventorySnapshot Inventory

Gets a fresh snapshot captured after the modification.