MCPcopy Index your code
hub / github.com/cabaletta/baritone / getBestSlot

Method getBestSlot

src/main/java/baritone/utils/ToolSet.java:135–137  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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

Callers 1

Calls 6

settingsMethod · 0.95
calculateSpeedVsBlockMethod · 0.95
hasSilkTouchMethod · 0.95
getMaterialCostMethod · 0.95
getDamageValueMethod · 0.80
hasMethod · 0.65

Tested by

no test coverage detected