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

Interface IInventoryItem

Represents an item stored in the inventory.

Inherited Members
IItemInstance.Item
Namespace: OpenMod.Extensions.Games.Abstractions.Items
Assembly: OpenMod.Extensions.Games.Abstractions.dll
Syntax
public interface IInventoryItem : IItemInstance

Methods

| Improve this Doc View Source

DestroyAsync()

Destroys the item.

Declaration
Task<bool> DestroyAsync()
Returns
Type Description
Task<System.Boolean>
| Improve this Doc View Source

DropAsync()

Drops the item to the ground.

Declaration
Task DropAsync()
Returns
Type Description
Task

Extension Methods

DisposeHelper.DisposeSyncOrAsync(Object)