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

Class RustItem

Inheritance
System.Object
RustItem
Implements
IItem
IHasInventory
Namespace: OpenMod.Rust.Items
Assembly: OpenMod.Rust.dll
Syntax
public class RustItem : object, IItem, IHasInventory

Constructors

| Improve this Doc View Source

RustItem(Item)

Declaration
public RustItem(Item item)
Parameters
Type Name Description
Item item

Properties

| Improve this Doc View Source

Asset

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

Inventory

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

Item

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

ItemInstanceId

Declaration
public string ItemInstanceId { get; }
Property Value
Type Description
System.String
| Improve this Doc View Source

State

Declaration
public IItemState State { get; }
Property Value
Type Description
IItemState

Methods

| Improve this Doc View Source

SetItemAmountAsync(Double)

Declaration
public Task SetItemAmountAsync(double amount)
Parameters
Type Name Description
System.Double amount
Returns
Type Description
Task
| Improve this Doc View Source

SetItemDurabilityAsync(Double)

Declaration
public Task SetItemDurabilityAsync(double durability)
Parameters
Type Name Description
System.Double durability
Returns
Type Description
Task
| Improve this Doc View Source

SetItemQualityAsync(Double)

Declaration
public Task SetItemQualityAsync(double quality)
Parameters
Type Name Description
System.Double quality
Returns
Type Description
Task

Implements

IItem
IHasInventory

Extension Methods

DisposeHelper.DisposeSyncOrAsync(Object)