I didn't know which functions take a world, but now I got it. It got replaced by "Level". I didn't think that they would more or less simply rename it. They could have replaced it with a whole new structure or sorts. As I said I'm completely new.
Anyways, thank you
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.
I simply try to attach a capability to a world, but how this works seems to have changed.
AttachCapabilitiesEvent<World> doesn't work anymore. The class "World" isn't part of the net.minecraft library anymore or got replaced by something else.
How can I attach capabilities to a world now (1.17.1)?