S9SourceNine Labs / CMAPI Docs 1.1
CMAPI / API reference

InventorySlotRule

Describes one virtual slot family returned by a mod.

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

Describes one virtual slot family returned by a mod.

Members

SlotKey

property
public string SlotKey

Gets the provider-owned equality key used to group items.

Capacity

property
public int Capacity

Gets the maximum number of physical items represented by one slot.

InventorySlotRule

method
public InventorySlotRule(string slotKey, int capacity)

Creates a virtual-slot rule.