To be honest I'm new to minecraft modding. I know my Java, but how this API works is still sort of a mystery to me.
The class World is gone, but I currently don't know what it was replaced with. I guess I will go back to 1.16 and start there and later update it to 1.17.