Found existing thread: https://discord.com/channels/303440391124942858/1179599390319587408
I'm attempting to read a json5 file in my config dir. I don't particularly care about the contents, just that it exists. The API documented in the linked thread no longer exists. I need to be able to call EventLogDirectory.parseFile which is a private static method on this class. How do I accomplish this with reflection?
AFAIK, accessing .class.getDeclaredField() and .setAccessible(true) only works on private member variables from a class instance.
declaration: package: net.minecraft.util.eventlog, class: EventLogDirectory