Table of Contents

Class ItemSlotInstance

Namespace
S1API.Items
Assembly
S1API.dll

Represents an item slot within the game. These are present within storage, the hot bar, etc.

public class ItemSlotInstance
Inheritance
ItemSlotInstance
Inherited Members
Extension Methods

Properties

ItemInstance

The item instance the slot contains.

public ItemInstance? ItemInstance { get; }

Property Value

ItemInstance

Quantity

The quantity of item in this slot.

public int Quantity { get; }

Property Value

int

Methods

AddQuantity(int)

Adds a quantity to the item in this slot. NOTE: Negative numbers are supported and allowed.

public void AddQuantity(int amount)

Parameters

amount int