canScroll

fun canScroll(inventoryId: Int, scrollAmount: Int): Boolean

Checks if a virtual inventory can be scrolled by the specified amount. This method is used to prevent scrolling beyond the bounds of the virtual inventory, which could cause errors or unexpected behavior.

Parameters

inventoryId

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

scrollAmount

The amount to scroll the virtual inventory.