fn registered_enchantment_matches( predicate: &EnchantmentPredicate, enchantments: &ItemEnchantments, ) -> bool