Class InventoryDisplayed
- Namespace
- Vintagestory.API.Common
- Assembly
- VintagestoryAPI.dll
A general purpose inventory which sends update packets to nearby players (used for rendering Display Case, Pulveriser, etc)
public class InventoryDisplayed : InventoryGeneric, IInventory, IReadOnlyCollection<ItemSlot>, IEnumerable<ItemSlot>, IEnumerable
- Inheritance
-
InventoryDisplayed
- Implements
- Inherited Members
- Extension Methods
Constructors
InventoryDisplayed(BlockEntity, int, string, ICoreAPI, NewSlotDelegate)
public InventoryDisplayed(BlockEntity be, int quantitySlots, string invId, ICoreAPI api, NewSlotDelegate onNewSlot = null)
Parameters
be
BlockEntityquantitySlots
intinvId
stringapi
ICoreAPIonNewSlot
NewSlotDelegate
Methods
OnItemSlotModified(ItemSlot)
Called when one of the containing slots has been modified (the base version of this is empty)
public override void OnItemSlotModified(ItemSlot slot)
Parameters
slot
ItemSlot