VirtualInventoryItemProvider

constructor(virtualInventory: VirtualInventory, slot: Int)

Parameters

virtualInventory

The VirtualInventory instance that this provider will retrieve items from. This should be the same instance of the virtual inventory that is being used in the associated GUI.

slot

The initial slot index that this provider will retrieve items from. This should be between 0 and size-1 of the virtual inventory. You can change this slot later by setting the slot property.