Bruh you responded after a month
EH (net.minecraft.enchantment.EnchantmentHelper)
* Check if item is instnaceof ItemArmor (net.minecraft.item.ItemArmor)
* Use EnchantmenHelper like this - EnchantmentHelper.getEnchantmentLevel(Enchantment.protection.effectId, mc.thePlayer.inventory.getStackInSlot(slot));
* profit