I just started programming about 10 days ago (3~ days into OsBot), so I don't understand a lot of the stuff in the API (how to use conditional sleeps, or classes in general).
Is there a way I can add a sleep condition to this to sleep until storeSlot[j] != null, the condition for continual click is true, or literally anything to pause it that isn't sleep(xxxx)?
if (iLoop && jLoop) {
InventorySlotDestination emptySlot = new InventorySlotDestination(getBot(), storeSlot[i]);
InventorySlotDestination fullSlot = new InventorySlotDestination(getBot(), storeSlot[j]);
getMouse().continualClick(fullSlot, new Condition() {
@Override
public boolean evaluate() {
getMouse().move(emptySlot, true);
return getInventory().getMouseDestination(i).getBoundingBox().contains(getMouse().getPosition());
}
});
}