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

Class UnturnedItemSpawner

Inheritance
System.Object
UnturnedItemSpawner
Implements
IItemSpawner
Namespace: OpenMod.Unturned.Items
Assembly: OpenMod.Unturned.dll
Syntax
public class UnturnedItemSpawner : 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>

Implements

IItemSpawner

Extension Methods

DisposeHelper.DisposeSyncOrAsync(Object)