onPreUpdateEvent

Called before the virtual inventory is updated in response to a click event. This method can be overridden to perform any necessary processing or validation before the inventory is modified based on the user's interaction. For example, you could use this method to check for specific conditions, modify the click event, or cancel the event if certain criteria are not met. By default, this method does nothing, but it provides a hook for subclasses to implement custom behavior before the inventory update occurs.

Parameters

event

The VirtualInventoryInteractEvent that triggered the update, containing information about the click event and the GUI interaction. This event can be used to access details about the click and make decisions based on that information before the inventory is updated.