The boss of New Zealand’s largest mining company said the role that coal plays in electricity generation is declining, but demand for the resource will remain for decades.