(LocalPlayer player)
| 75 | ); |
| 76 | |
| 77 | public ToolSet(LocalPlayer player) { |
| 78 | breakStrengthCache = new HashMap<>(); |
| 79 | this.player = player; |
| 80 | |
| 81 | if (Baritone.settings().considerPotionEffects.value) { |
| 82 | double amplifier = potionAmplifier(); |
| 83 | Function<Double, Double> amplify = x -> amplifier * x; |
| 84 | backendCalculation = amplify.compose(this::getBestDestructionTime); |
| 85 | } else { |
| 86 | backendCalculation = this::getBestDestructionTime; |
| 87 | } |
| 88 | } |
| 89 | |
| 90 | /** |
| 91 | * Using the best tool on the hotbar, how fast we can mine this block |
nothing calls this directly
no test coverage detected