onClick

open fun onClick(clickEvent: InventoryClickEvent)

Handles click events in the inventory. When a slot is clicked, this method checks if the slot corresponds to a provider in the structure and calls the onClick() method of that provider. If the provider is a VirtualInventoryItemProvider, it creates a VirtualInventoryInteractEvent and passes it to the virtual inventory's handleClick() method. This allows for proper handling of clicks on both regular items and virtual inventory items within the GUI.

Parameters

clickEvent

the InventoryClickEvent