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

Interface IInventoryPage

Represents a page of an inventory.

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

Properties

| Improve this Doc View Source

Capacity

Gets the maximum amount of items this page can hold.

Declaration
int Capacity { get; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

Inventory

The inventory this page belongs to.

Declaration
IInventory Inventory { get; }
Property Value
Type Description
IInventory
| Improve this Doc View Source

IsFull

Checks if the page is full.

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

IsReadOnly

Checks if the player can only view the content.

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

Items

Gets the items this page holds.

Declaration
IReadOnlyCollection<IInventoryItem> Items { get; }
Property Value
Type Description
IReadOnlyCollection<IInventoryItem>
| Improve this Doc View Source

Name

Gets the name of this page.

Declaration
string Name { get; }
Property Value
Type Description
System.String

Extension Methods

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