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

Class UnturnedInventoryItem

Inheritance
System.Object
UnturnedInventoryItem
Implements
IInventoryItem
IItemInstance
Namespace: OpenMod.Unturned.Items
Assembly: OpenMod.Unturned.dll
Syntax
public class UnturnedInventoryItem : object, IInventoryItem, IItemInstance

Constructors

| Improve this Doc View Source

UnturnedInventoryItem(UnturnedPlayerInventory, ItemJar)

Declaration
public UnturnedInventoryItem(UnturnedPlayerInventory inventory, ItemJar itemJar)
Parameters
Type Name Description
UnturnedPlayerInventory inventory
ItemJar itemJar

Properties

| Improve this Doc View Source

Inventory

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

Item

Declaration
public UnturnedItem Item { get; }
Property Value
Type Description
UnturnedItem
| Improve this Doc View Source

ItemJar

Declaration
public ItemJar ItemJar { get; }
Property Value
Type Description
ItemJar

Methods

| Improve this Doc View Source

DestroyAsync()

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

DropAsync()

Declaration
public Task DropAsync()
Returns
Type Description
Task

Explicit Interface Implementations

| Improve this Doc View Source

IItemInstance.Item

Declaration
IItem IItemInstance.Item { get; }
Returns
Type Description
IItem

Implements

IInventoryItem
IItemInstance

Extension Methods

DisposeHelper.DisposeSyncOrAsync(Object)