Calculate which tool on the hotbar is best for mining, depending on an override setting, related to auto tool movement cost, it will either return current selected slot, or the best slot. @param b the blockstate to be mined @return An int containing the index in the tools array that worked best
(Block b, boolean preferSilkTouch)
| 133 | */ |
| 134 | |
| 135 | public int getBestSlot(Block b, boolean preferSilkTouch) { |
| 136 | return getBestSlot(b, preferSilkTouch, false); |
| 137 | } |
| 138 | |
| 139 | public int getBestSlot(Block b, boolean preferSilkTouch, boolean pathingCalculation) { |
| 140 |
no test coverage detected