Closed OmniacDev closed 1 month ago
Profile Interface
minecraft_version
version
path
uuid
runtime
name
mods
Maybe:
icon
const ExampleProfile: Profile = { name: "Example Modded Profile", version: { path: "C:\\Users\\Administrator\\AppData\\Roaming\\Amethyst\\Versions\\Minecraft-1.21.0.3", uuid: "21c7d413-83d5-45de-b8b2-e9e6f87fb5fe" }, runtime: "AMETHYST_RUNTIME_UUID", mods: [ "BETTER_INVENTORY_UUID" ] }
profiles.json
[ { "name": "Example Vanilla Profile", "version": { "path": "C:\\Users\\Administrator\\AppData\\Roaming\\Amethyst\\Versions\\Minecraft-1.21.2.2", "uuid": "9a8e324e-7240-403a-a404-b7420421138c" } }, { "name": "Example Modded Profile", "version": { "path": "C:\\Users\\Administrator\\AppData\\Roaming\\Amethyst\\Versions\\Minecraft-1.21.0.3", "uuid": "21c7d413-83d5-45de-b8b2-e9e6f87fb5fe" }, "runtime": "AMETHYST_RUNTIME_UUID", "mods": [ "BETTER_INVENTORY_UUID" ] } ]
MinecraftVersion
Version
default_installation_path
default_path
installed_versions
versions
Version Interface
InstalledVersion
const ExampleVersion: Version = { path: "C:\\Users\\Administrator\\AppData\\Roaming\\Amethyst\\Versions\\Minecraft-1.21.2.2", uuid: "9a8e324e-7240-403a-a404-b7420421138c" }
versions.json
{ "default_path": "C:\\Users\\Administrator\\AppData\\Roaming\\Amethyst\\Versions", "versions": [ { "path": "C:\\Users\\Administrator\\AppData\\Roaming\\Amethyst\\Versions\\Minecraft-1.21.0.3", "uuid": "21c7d413-83d5-45de-b8b2-e9e6f87fb5fe" }, { "path": "C:\\Users\\Administrator\\AppData\\Roaming\\Amethyst\\Versions\\Minecraft-1.21.2.2", "uuid": "9a8e324e-7240-403a-a404-b7420421138c" } ] }
Both #57 (this) and #56 shouldn't require any immediate changes to AmethystRuntime, so I can already start implementing them.
Outdated, will make a new issue with the updated formats for #62
Profile Changes
Profile Interface
minecraft_version
property {string} toversion
property {object} which contains:path
property {string}uuid
property {string}runtime
property {string} optional, and use runtime's manifest.jsonuuid
property {string} instead ofname
property {string}mods
property {string[]} optional, and use each mod'suuid
property {string} instead ofname
property {string}Maybe:
icon
property {string} (contains path to icon)Example Profile Interface
Example
profiles.json
Version Changes
MinecraftVersion
class, and instead use the UUID inVersion
interface to get associated version data.default_installation_path
property todefault_path
installed_versions
property {InstalledVersion[]} withversions
property {Version[]}Version Interface
InstalledVersion
toVersion
version
property {string} touuid
property {string}Example Version Interface
Example
versions.json