Interface VersionJson

The general format of a version.json file. Do note that GMLL adds extensions to this interface to allow some of GMLL's more complex features to function.

Hierarchy

  • VersionJson

Properties

arguments?: {
    game: LaunchArguments;
    jvm: LaunchArguments;
}

Type declaration

assetIndex: Artifact
assets: string
complianceLevel: string
downloads: {
    client: Artifact;
    client_mappings?: Artifact;
    server?: Artifact;
    server_mappings?: Artifact;
    windows_server?: Artifact;
}

Type declaration

id: string
inheritsFrom?: string
instance?: {
    assets: Partial<AssetIndex>;
    files: DownloadableFile[];
    forge?: {
        installer: string[];
    };
    meta: any;
    restart_Multiplier?: number;
}

The low level information GMLL's modpack api uses to download a set modpack

Type declaration

  • assets: Partial<AssetIndex>

    Assets to inject into any instance made with this version file.

  • files: DownloadableFile[]

    The files that need to be download for a set instance

  • Optional forge?: {
        installer: string[];
    }

    Used to locate the forge installer

    • installer: string[]
  • meta: any

    Custom meta data. Here to be used by launcher developers, GMLL won't interact with this! Usefull for providing more info about a modpack

  • Optional restart_Multiplier?: number

    Determines how long to wait before restarting the download. Lower = better for many smaller files. Higher is better for fewer larger files. Formula restart_Multiplier x 15 seconds = amount of time before assuming crash. Timer is reset every time GMLL downloads and saves a file successfully

    Deprecated

    No longer used by the new downloader

javaVersion?: {
    component: MCRuntimeVal;
    majorVersion: number;
}

Type declaration

libraries: [Library]
logging?: {
    client: {
        argument: string;
        file: Artifact;
        type: "log4j2-xml";
    };
}

Type declaration

  • client: {
        argument: string;
        file: Artifact;
        type: "log4j2-xml";
    }
    • argument: string
    • file: Artifact
    • type: "log4j2-xml"
mainClass: string
minecraftArguments?: string
minimumLauncherVersion: number
releaseTime: string
synced?: boolean
time: string

Generated using TypeDoc