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
ICoreClientAPIinventory
IInventorySendPacketHandler
Action<object>cols
intvisibleSlots
int[]bounds
ElementBounds
Methods
DetermineAvailableSlots(int[])
Determines the available slots for the slot grid.
public void DetermineAvailableSlots(int[] visibleSlots = null)
Parameters
visibleSlots
int[]