OpenMod Docs OpenMod Docs
OpenMod Docs OpenMod Docs
OpenMod .NET Plugin Framework.

Interface IInventory

Represents an inventory.

Namespace: OpenMod.Extensions.Games.Abstractions.Items
Assembly: OpenMod.Extensions.Games.Abstractions.dll
Syntax
public interface IInventory : IReadOnlyCollection<IInventoryPage>

Properties

| Improve this Doc View Source

IsFull

Checks if the inventory is full.

Declaration
bool IsFull { get; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

Pages

Gets the pages of the inventory. Page support depends on the game and owner object. Some games and objects only suppport a single page.

Declaration
IReadOnlyCollection<IInventoryPage> Pages { get; }
Property Value
Type Description
IReadOnlyCollection<IInventoryPage>
Examples

In the game Unturned, the player inventory consists of multiple pages. These pages
are:

* Hands
* Clothing slots
* Primary slot
* Secondary slot
* Clothing pages

Extension Methods

InventoryExtensions.ClearAsync(IInventory)
InventoryExtensions.FindByType(IInventory, String, Nullable<IComparer<IInventoryItem>>)
InventoryExtensions.FindByAssetId(IInventory, String, Nullable<IComparer<IInventoryItem>>)
DisposeHelper.DisposeSyncOrAsync(Object)