As a result of 1.18.2 changes, all worldgen registries can now have tags. Including biomes! As a result of this, Mojang has deprecated the biome category which means that sooner or later, this enum will be deleted. To better protect yourself and your mod/datapack from relying on these categories, you should instead, switch to using biome tags.
The existing biome tags from vanilla do not cover all usecases which means that many modders have started banding together to decide on common biome tags to use. These common biome tags are under the c:
namespace mostly. In Forge 1.18.2 to 1.20.X, they use the forge:
namespace but Forge 1.21.X and newer uses c:
now.
For best compatibility with any mod or datapack, you should have a custom tag that pulls entries from minecraft:
and c:
tags. Yes, datapacks too should be adding their biomes to the c:
namespaced tags. And mods can "datagen" the tag json files automatically but that is outside the scope of this gist. See the [Fabric