ToolComponentHelper.Rule
com.jsmacrosce.jsmacros.client.api.helper.inventory.ToolComponentHelper.Rule
Describes one mining rule: the blocks it applies to and the settings it overrides.
js
const tool = Player.getPlayer()?.getMainHand().getComponents().getTool();
if (tool != null) {
for (const rule of tool.getRules()) {
const tag = rule.getBlockTagId();
if (tag !== null) Chat.log(`#${tag}: ${rule.getMiningSpeed()}`);
}
}Nested type declared in ToolComponentHelper.