I noticed that GameRegistry's register functions are now private, and to register things, we now use either the ForgeRegistries class or RegistryEvents. ForgeRegistries is quite self explainatory, but I would like to know a little more about RegistryEvents. Where do I get RegistryEvents from? When are they, uh, emitted, or whatever? And, how can I register items, blocks and whatnot with them? I don't entirely get what is written in the forge source comments.
Thanks in advance.