Thats scrollToSlot not clickToSlot:
clickToSlot public void clickToSlot(int slot,int absoluteSlot)
Scrolls to the specified slot by clicking the scroll arrow buttons
Parameters: slot - slotToScrollTo
scrollToSlot public void scrollToSlot(int slot,boolean forceMouseScroll,
int absoluteSlot)
Scrolls to the specified slot either by scrolling the mouse or clicking the scroll arrow buttons, randomized with 5/6 chance of mouse scrolling. THIS IS RECOMMENDED METHOD
Parameters: slot - The slot to scroll to. forceMouseScroll - If true the method will be forced to scroll using the mouse scroll wheel instead of randomizing usage of the scroll button and the arrow marker buttons.