lookupVillagerProfessionId

@NotNull
abstract fun lookupVillagerProfessionId(@NotNull profession: @NotNull VillagerProfession): @NotNull Identifier(source)

Finds the ID of the given villager profession in the registry.

Parameters

profession

The villager profession instance to look up