This repository was archived by the owner on Dec 13, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 123
VRage.Game.ModAPI.Ingame.IMyInventory
Morten Aune Lyrstad edited this page Oct 10, 2019
·
50 revisions
← Index ← Namespace Index
public interface IMyInventoryNamespace: VRage.Game.ModAPI.Ingame
Assembly: VRage.Game.dll
| Member | Description |
|---|---|
| Owner | Returns entity this inventory belongs to. |
| IsFull | Determines if inventory is absolutely full. |
| CurrentMass | Returns total mass of items inside this inventory in Kg. |
| MaxVolume | Returns maximum volume of items this inventory can contain in m^3. |
| CurrentVolume | Returns total volume of items inside this inventory in m^3. |
| ItemCount | Returns number of occupied inventory slots. |
| Member | Description |
|---|---|
| IsItemAt(int) | Determines if there is any item on given inventory slot. |
| GetItemAmount(MyItemType) | Sums up total amount of items of given type contained inside this inventory. |
| ContainItems(MyFixedPoint, MyItemType) | Determines if there is at least given amount of items of given type contained inside this inventory. |
| GetItemAt(int) | Returns info about item at give position. |
| GetItemByID(uint) | Returns info about item contained inside this inventory. |
| FindItem(MyItemType) | Tries to find an item of given type inside this inventory. |
| CanItemsBeAdded(MyFixedPoint, MyItemType) | Determines if given amount of items fits into this inventory on top of existing items. |
| GetItems(List, Func) | Collects all items present inside this inventory and returns snapshot of the current inventory state. |
| TransferItemTo(IMyInventory, MyInventoryItem, MyFixedPoint?) | Attempts to transfer item from one inventory to another. |
| TransferItemFrom(IMyInventory, MyInventoryItem, MyFixedPoint?) | Attempts to transfer item from one inventory to another. |
| TransferItemTo(IMyInventory, int, int?, bool?, MyFixedPoint?) | Attempts to transfer item from one inventory to another. |
| TransferItemFrom(IMyInventory, int, int?, bool?, MyFixedPoint?) | Attempts to transfer item from one inventory to another. |
| IsConnectedTo(IMyInventory) | Checks if two inventories are connected. |
| CanTransferItemTo(IMyInventory, MyItemType) | Determines if there is working conveyor connection for item of give type to be transferred to other inventory. |
| GetAcceptedItems(List, Func) | Returns all items this inventory accepts. |
Do you have questions, comments, suggestions for improvements? Is there something I can do better? Did I make a mistake? Please add an issue here, and prefix your issue title with Wiki. Thank you, your help will be very appreciated!