A utility class I’ve been bringing around with me for most of my time modding Cobblemon. Loads in a JSON file at a given path relative to the modpack’s profile directory, runs it through a given class to create a new instance of that class. If there is no file, it will be created with defaults present in the class itself. If there is a file and it’s invalid JSON, the file will be erased and replaced with the defaults.