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

Class RustItemSpawner

Inheritance
System.Object
RustItemSpawner
Implements
IItemSpawner
Namespace: OpenMod.Rust.Items
Assembly: OpenMod.Rust.dll
Syntax
public class RustItemSpawner : object, IItemSpawner

Methods

| Improve this Doc View Source

GiveItemAsync(IInventory, String, IItemState)

Declaration
public Task<IItemInstance> GiveItemAsync(IInventory inventory, string itemId, IItemState state = null)
Parameters
Type Name Description
IInventory inventory
System.String itemId
IItemState state
Returns
Type Description
Task<IItemInstance>
| Improve this Doc View Source

SpawnItemAsync(Vector3, String, IItemState)

Declaration
public Task<IItemDrop> SpawnItemAsync(Vector3 position, string itemId, IItemState state = null)
Parameters
Type Name Description
Vector3 position
System.String itemId
IItemState state
Returns
Type Description
Task<IItemDrop>

Implements

IItemSpawner

Extension Methods

DisposeHelper.DisposeSyncOrAsync(Object)