Table of Contents

Class GuiElementItemSlotGrid

Namespace
Vintagestory.API.Client
Assembly
VintagestoryAPI.dll

Displays the slots of an inventory in the form of a slot grid

public class GuiElementItemSlotGrid : GuiElementItemSlotGridBase, IDisposable
Inheritance
GuiElementItemSlotGrid
Implements
Inherited Members
Extension Methods

Constructors

GuiElementItemSlotGrid(ICoreClientAPI, IInventory, Action<object>, int, int[], ElementBounds)

public GuiElementItemSlotGrid(ICoreClientAPI capi, IInventory inventory, Action<object> SendPacketHandler, int cols, int[] visibleSlots, ElementBounds bounds)

Parameters

capi ICoreClientAPI
inventory IInventory
SendPacketHandler Action<object>
cols int
visibleSlots int[]
bounds ElementBounds

Methods

DetermineAvailableSlots(int[])

Determines the available slots for the slot grid.

public void DetermineAvailableSlots(int[] visibleSlots = null)

Parameters

visibleSlots int[]