S9SourceNine Labs / CMAPI Docs 1.1
CMAPI / API reference

IInventorySlotProvider

Supplies optional virtual-slot rules. Returning null preserves the game's normal one-item-per-slot behavior for that item.

View source ↗
CMAPI 1.1.4Standalone runtimeWindows x64Tested with Planet Crafter 2.008
Namespace CMAPIInterfaceAssembly CMAPI.API.dll
public interface IInventorySlotProvider

Supplies optional virtual-slot rules. Returning null preserves the game's normal one-item-per-slot behavior for that item.

Members

GetSlotRule

method
InventorySlotRule? GetSlotRule( InventoryContext inventory, InventoryItemDescriptor item )

Gets the virtual-slot rule for an item, or null to retain native behavior.