refreshVirtualInventorySlot

fun refreshVirtualInventorySlot(inventoryId: Int, slot: Int)

Refreshes a specific slot for a virtual inventory. This method is used to update a single slot in the GUI that is associated with a virtual inventory, typically after scrolling or when the contents of the virtual inventory have changed. It calls the refresh() method on the provider associated with the specified slot in the virtual inventory, which will update the item in the GUI for that slot accordingly.

Parameters

inventoryId

The ID of the virtual inventory to refresh. This should correspond to the ID specified when the virtual inventory was bound in the Builder.

slot

The slot index within the virtual inventory to refresh.