What's the best way to get all enchant levels of certain enchants (for instance: enchants on armor pieces) without to many steps? I'm unsure if theres a better way, this is currently what I have: PHP: $entity = $event->getEntity();$enchants = [];foreach($entity->getArmorInventory()->getContents() as $armor) { foreach($armor->getEnchantments() as $enchant) { if(!$enchant->getType() instanceof CustomEnchantment) { break; } if(isset($enchants[$enchant->getId()])) { $enchants[$enchant->getId()] += $enchant->getLevel(); break; } $enchants[$enchant->getId()] = $enchant->getLevel(); }}