getPotionEffectType

fun CommandContext<CommandSourceStack>.getPotionEffectType(name: String): PotionEffectType?

Retrieves a potion effect type from the command context.