if (ai instanceof AIRobotFetchAndEquipItemStack) {
ItemStack stack = robot.getHeldItem();
if (stack != null && stack.getItem() instanceof ItemPickaxe) {
ItemPickaxe pickaxe = (ItemPickaxe) stack.getItem();
harvestLevel = pickaxe.getHarvestLevel(stack, "pickaxe");
}
}
}