(int quantity, BlockOptionalMetaLookup filter)
| 503 | } |
| 504 | |
| 505 | @Override |
| 506 | public void mine(int quantity, BlockOptionalMetaLookup filter) { |
| 507 | this.filter = filter; |
| 508 | if (this.filterFilter() == null) { |
| 509 | this.filter = null; |
| 510 | } |
| 511 | this.desiredQuantity = quantity; |
| 512 | this.knownOreLocations = new ArrayList<>(); |
| 513 | this.blacklist = new ArrayList<>(); |
| 514 | this.branchPoint = null; |
| 515 | this.branchPointRunaway = null; |
| 516 | this.anticipatedDrops = new HashMap<>(); |
| 517 | if (filter != null) { |
| 518 | rescan(new ArrayList<>(), new CalculationContext(baritone)); |
| 519 | } |
| 520 | } |
| 521 | |
| 522 | private BlockOptionalMetaLookup filterFilter() { |
| 523 | if (this.filter == null) { |
no test coverage detected