Hi dear modders,
I'm quite new to modding (but not to Java ) and I need some explanations about the Forge 1.12 registry event system.
Registering an Item or a Block seems quite easy to do, but I'm trying to add a basic WorldGenerator to create some ore vein.
The tutorial I'm following is now old, so I guess the registration part isn't up to date. l supposed we should now use some event, but I'm surprised, WorldGenerator isn't suitable for RegistryEvent.Register<T extends IForgeRegistryEntry==<==T>>. So what is the new way to register it?
Also, I discovered Recipe is an instance of IForgeRegistryEntry. So I suppose I should use the event for registration. For now I'm doing it this way:
Is it the intended way to do this? What is your way to register recipes from JSON files?
Any detail would be appreciated.