Skip to content
This repository has been archived by the owner on Oct 22, 2024. It is now read-only.

Sandbox.ModAPI.Ingame.MyInventoryItemFilter

Morten Aune Lyrstad edited this page May 8, 2022 · 46 revisions

IndexNamespace Index

MyInventoryItemFilter Struct

public struct MyInventoryItemFilter

Implements inventory item filter

Namespace: Sandbox.ModAPI.Ingame
Assembly: Sandbox.Common.dll

Fields

bool AllSubTypes

Determines whether all subtypes of the given item ID should pass this filter check.

MyDefinitionId ItemId

Specifies an item to filter. Set AllSubTypes to true to only check the main type part of this ID.

Properties

MyItemType ItemType { get; }

Constructors

MyInventoryItemFilter(string itemId, bool allSubTypes = default)

MyInventoryItemFilter(MyDefinitionId itemId, bool allSubTypes = default)

Clone this wiki locally