Space Engineers
Public Member Functions | List of all members
VRage.Game.ModAPI.IMyInventory Interface Reference
Inheritance diagram for VRage.Game.ModAPI.IMyInventory:
VRage.Game.ModAPI.Ingame.IMyInventory Sandbox.Game.MyInventory

Public Member Functions

bool Empty ()
 
void Clear (bool sync=true)
 
void AddItems (VRage.MyFixedPoint amount, MyObjectBuilder_PhysicalObject objectBuilder, int index=-1)
 
void RemoveItemsOfType (VRage.MyFixedPoint amount, MyObjectBuilder_PhysicalObject objectBuilder, bool spawn=false)
 
void RemoveItemsOfType (VRage.MyFixedPoint amount, SerializableDefinitionId contentId, MyItemFlags flags=MyItemFlags.None, bool spawn=false)
 
void RemoveItemsAt (int itemIndex, VRage.MyFixedPoint?amount=null, bool sendEvent=true, bool spawn=false)
 
void RemoveItems (uint itemId, VRage.MyFixedPoint?amount=null, bool sendEvent=true, bool spawn=false)
 
bool TransferItemTo (VRage.Game.ModAPI.Ingame.IMyInventory dst, int sourceItemIndex, int?targetItemIndex=null, bool?stackIfPossible=null, VRage.MyFixedPoint?amount=null, bool checkConnection=true)
 
bool TransferItemFrom (VRage.Game.ModAPI.Ingame.IMyInventory sourceInventory, int sourceItemIndex, int?targetItemIndex=null, bool?stackIfPossible=null, VRage.MyFixedPoint?amount=null, bool checkConnection=true)
 
- Public Member Functions inherited from VRage.Game.ModAPI.Ingame.IMyInventory
bool IsItemAt (int position)
 
bool CanItemsBeAdded (VRage.MyFixedPoint amount, SerializableDefinitionId contentId)
 
bool ContainItems (VRage.MyFixedPoint amount, MyObjectBuilder_PhysicalObject ob)
 
VRage.MyFixedPoint GetItemAmount (SerializableDefinitionId contentId, MyItemFlags flags=MyItemFlags.None)
 
bool TransferItemTo (IMyInventory dst, int sourceItemIndex, int?targetItemIndex=null, bool?stackIfPossible=null, VRage.MyFixedPoint?amount=null)
 
bool TransferItemFrom (IMyInventory sourceInventory, int sourceItemIndex, int?targetItemIndex=null, bool?stackIfPossible=null, VRage.MyFixedPoint?amount=null)
 
List< IMyInventoryItemGetItems ()
 
IMyInventoryItem GetItemByID (uint id)
 
IMyInventoryItem FindItem (SerializableDefinitionId contentId)
 
bool IsConnectedTo (IMyInventory dst)
 

Additional Inherited Members

- Properties inherited from VRage.Game.ModAPI.Ingame.IMyInventory
bool IsFull [get]
 
VRageMath.Vector3 Size [get]
 
VRage.MyFixedPoint CurrentMass [get]
 
VRage.MyFixedPoint MaxVolume [get]
 
VRage.MyFixedPoint CurrentVolume [get]
 
IMyInventoryOwner Owner [get]
 

Detailed Description

Definition at line 10 of file IMyInventory.cs.

Member Function Documentation

void VRage.Game.ModAPI.IMyInventory.AddItems ( VRage.MyFixedPoint  amount,
MyObjectBuilder_PhysicalObject  objectBuilder,
int  index = -1 
)
void VRage.Game.ModAPI.IMyInventory.Clear ( bool  sync = true)

Implemented in Sandbox.Game.MyInventory.

bool VRage.Game.ModAPI.IMyInventory.Empty ( )

Implemented in Sandbox.Game.MyInventory.

void VRage.Game.ModAPI.IMyInventory.RemoveItems ( uint  itemId,
VRage.MyFixedPoint amount = null,
bool  sendEvent = true,
bool  spawn = false 
)
void VRage.Game.ModAPI.IMyInventory.RemoveItemsAt ( int  itemIndex,
VRage.MyFixedPoint amount = null,
bool  sendEvent = true,
bool  spawn = false 
)
void VRage.Game.ModAPI.IMyInventory.RemoveItemsOfType ( VRage.MyFixedPoint  amount,
MyObjectBuilder_PhysicalObject  objectBuilder,
bool  spawn = false 
)
void VRage.Game.ModAPI.IMyInventory.RemoveItemsOfType ( VRage.MyFixedPoint  amount,
SerializableDefinitionId  contentId,
MyItemFlags  flags = MyItemFlags.None,
bool  spawn = false 
)
bool VRage.Game.ModAPI.IMyInventory.TransferItemFrom ( VRage.Game.ModAPI.Ingame.IMyInventory  sourceInventory,
int  sourceItemIndex,
int?  targetItemIndex = null,
bool?  stackIfPossible = null,
VRage.MyFixedPoint amount = null,
bool  checkConnection = true 
)
bool VRage.Game.ModAPI.IMyInventory.TransferItemTo ( VRage.Game.ModAPI.Ingame.IMyInventory  dst,
int  sourceItemIndex,
int?  targetItemIndex = null,
bool?  stackIfPossible = null,
VRage.MyFixedPoint amount = null,
bool  checkConnection = true 
)

The documentation for this interface was generated from the following file: