Here's your logic.
private State getState() {
if (!isBusy()) {
if (!Inventory.containsAll(item1, item2) && !Bank.isOpen()) {
return State.OPENBANK;
} else if (Bank.isOpen() && !Inventory.containsAll(item1, item2)) {
return State.BANK;
} else if (Bank.isOpen() && Inventory.containsAll(item1, item2)) {
return State.CLOSEBANK;
} else if (Inventory.containsAll(item1, item2) && !Bank.isOpen()) {
return State.FLETCH;
}
}
return State.ANTIBAN;
}