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

Method ToolSet

src/main/java/baritone/utils/ToolSet.java:77–88  ·  view source on GitHub ↗
(LocalPlayer player)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

settingsMethod · 0.95
potionAmplifierMethod · 0.95

Tested by

no test coverage detected