Interface IMyInventoryOwner
Describes interface of object that has inventory (PB scripting interface)
Namespace: VRage.Game.ModAPI.Ingame
Assembly: VRage.Game.dll
Syntax
public interface IMyInventoryOwner
Properties
EntityId
Gets EntityId, which it belongs to
Declaration
long EntityId { get; }
Property Value
Type | Description |
---|---|
System.Int64 |
HasInventory
Gets whether has inventory
Declaration
bool HasInventory { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
InventoryCount
Gets amount of inventories
Declaration
int InventoryCount { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
UseConveyorSystem
Gets or sets if that inventory can interact with
Declaration
bool UseConveyorSystem { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
GetInventory(Int32)
Gets inventory by index
Declaration
IMyInventory GetInventory(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | Index of inventory, should be less than InventoryCount |
Returns
Type | Description |
---|---|
IMyInventory |