I need to store some custom data in the form of regular old files for my mod.
To do that I need a directory where I can conveniently store that data.
Ideally the .minecraft directory on windows, the instance directory if something like multimc / prism is used, the server directory when on a server and so on.
Is there a convenient method to get that directory?