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) Open in GitHub
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
beBlockEntityquantitySlotsintinvIdstringapiICoreAPIonNewSlotNewSlotDelegate
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
slotItemSlot