Method GetItem
GetItem(string)
Gets an InventoryItem by InventoryItemDefinition reference if it is contained within, otherwise returns null.
Declaration
public static InventoryItem GetItem(string itemDefinitionId)
Parameters
| Type | Name | Description |
|---|---|---|
| string | itemDefinitionId | The Id of the InventoryItem to find. |
Returns
| Type | Description |
|---|---|
| InventoryItem | The InventoryItem or null if not found. |
GetItem(int)
Gets an InventoryItem by InventoryItemDefinition Hash if it is contained within, otherwise returns null.
Declaration
public static InventoryItem GetItem(int itemDefinitionHash)
Parameters
| Type | Name | Description |
|---|---|---|
| int | itemDefinitionHash | The InventoryItemDefinition Hash of the InventoryItem to find. |
Returns
| Type | Description |
|---|---|
| InventoryItem | The InventoryItem or null if not found. |