boundingRect

fun boundingRect(index: Int): Rectangle

Finds the boundingRectangle of the desired index, not every area within the rectangle will click the item

Return

boundingRectangle of the index param

Parameters

index

0-(Constants.INVENTORY_SIZE-1), index of inventory

Throws

if index is below 0 or above (Constants.INVENTORY_SIZE-1)