34 public function getMiningEfficiency(
bool $isCorrectTool) : float{
37 $efficiency = $this->getBaseMiningEfficiency();
38 if(($enchantmentLevel = $this->
getEnchantmentLevel(VanillaEnchantments::EFFICIENCY())) > 0){
39 $efficiency += ($enchantmentLevel ** 2 + 1);
46 protected function getBaseMiningEfficiency() : float{