
RegistryNameProvider
When migrating my mods from version 1.16.5 to 1.21.1, I constantly faced the need to replace XXX.getRegistryName calls with ForgeRegistries.XXX.getKey(XXX), which consumed a lot of time and effort.
To simplify this process, I developed this mod that allows using the unified Provider#getRegistryName method for all Minecraft versions, eliminating the need for manual code adaptation during updates.
Supported Object Types
Versions 1.16.5-1.20.1
- Entity types
- Items
- Blocks
- Enchantments
- Attributes
- Mob effects
Version 1.21.1
All the above types except enchantments.
This approach significantly speeds up the process of porting mods between different game versions.