you should look how to use for loops
here:
private int[] slotArray = {1,2,3,7,6,5,4,8,9,10,11,15,14,13,12,16,17,18,19,23,22,21,20,24,25,26,27};
public void clickAllRing() throws InterruptedException {
for(int i : slotArray) {
getMouse().click(getInventory().getMouseDestination(i));
//add sleep here
}
}
you might want to change the order of the ints in the slotArray because they current will not obey your order of clicking.
Precise