private void test() {
RS2Object rock1 = getObjects().getAll().stream().filter(
a -> a.getName().equals("Iron rock") &&
a.getX() == 123 &&
a.getY() == 234)
.findAny().orElse(null);
boolean minedRock1 = false;
boolean minedRock2 = false;
if (minedRock1 && minedRock2) {
//make all false
} else if (!minedRock1) {
//mine rock 1
//set true
} else if (!minedRock2) {
//mine rock2
//set true
}
}