Summary

public IMyInventory GetInventory()

Simply get the MyInventoryBase component stored in this entity.

Returns

IMyInventory

Null, or first inventory

Summary

public IMyInventory GetInventory(int index)

Search for inventory component with matching index.

Returns

IMyInventory

Null, or inventory at matching index

Parameters