Class RustItem
Inheritance
System.Object
RustItem
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
|
Improve this Doc
View Source
Inventory
Declaration
public IInventory Inventory { get; }
Property Value
|
Improve this Doc
View Source
Item
Declaration
public Item Item { get; }
Property Value
|
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
Methods
|
Improve this Doc
View Source
SetItemAmountAsync(Double)
Declaration
public Task SetItemAmountAsync(double amount)
Parameters
Type |
Name |
Description |
System.Double |
amount |
|
Returns
|
Improve this Doc
View Source
SetItemDurabilityAsync(Double)
Declaration
public Task SetItemDurabilityAsync(double durability)
Parameters
Type |
Name |
Description |
System.Double |
durability |
|
Returns
|
Improve this Doc
View Source
SetItemQualityAsync(Double)
Declaration
public Task SetItemQualityAsync(double quality)
Parameters
Type |
Name |
Description |
System.Double |
quality |
|
Returns
Implements
Extension Methods