I've been stuck on this for a while now, so how do I obtain a String of a ForgeConfigSpec (and is that even the correct class to use?).
Now the issue is that the exact path of the String is not known at compile time and will be only known to the runtime after the config has been built via the ForgeConfigSpec.Builder, this also removes the possibility from using the builder to obtain the instances. Since the ForgeConfigSpec has getByte, getInt, getEnum, etc. methods I doubt that there is anything that would hinder me from obtaining a String of it, however a getString method is missing and using getRaw or getOrDefault throw a ClassCastException since the get, getRaw and getOrElse methods don't return T (so String in my case) but from some reason return ForgeConfigSpec.ValueSpec. However ValueSpec is pretty useless for me since that also doesn't have the needed methods to convert it's content to a String (#get(null) or #get("") could be one, but I won't attempt that since that would be super strange if it were to work).
So how do I actually obtain a String?