Documentation
¶
Index ¶
- Constants
- Variables
- func Jvmarguments(j Jvm) []string
- func MinecraftArguments2jvm(m string) []interface{}
- func Name2path(name string) []string
- func NewLauncher1155(json LauncherjsonX115) *launcher1155
- type ArgumentsX115
- type ArtifactX115
- type AssetIndexX115
- type ClassifiersX115
- type ClientMappingsX115
- type ClientX115
- type ClientX115jar
- type DownloadsX115
- type DownloadsX115jar
- type ExtractX115
- type FileX115
- type Gameinfo
- type JavadocX115
- type Jvm
- type JvmRule
- type LauncherjsonX115
- type Librarie
- type LibraryX115
- type LoggingX115
- type Modsjson
- type NativesLinuxX115
- type NativesMacosX115
- type NativesOsxX115
- type NativesWindowsX115
- type NativesX115
- type OsX115
- type PatchX115
- type RuleX115
- type ServerMappingsX115
- type ServerX115
- type SourcesX115
Constants ¶
View Source
const ( Launcherbrand string = "GML" Launcherversion string = "1.1.3" )
Variables ¶
View Source
var Minecraft string = "minecraft"
Functions ¶
func Jvmarguments ¶
func MinecraftArguments2jvm ¶
func MinecraftArguments2jvm(m string) []interface{}
func NewLauncher1155 ¶
func NewLauncher1155(json LauncherjsonX115) *launcher1155
Types ¶
type ArgumentsX115 ¶
type ArgumentsX115 struct { Game []interface{} `json:"game"` Jvm []interface{} `json:"jvm"` }
type ArtifactX115 ¶
type ArtifactX115 struct { Path string `json:"path" example:"com/mojang/patchy/1.1/patchy-1.1.jar"` Sha1 string `json:"sha1" example:"aef610b34a1be37fa851825f12372b78424d8903"` Size float64 `json:"size"` URL string `json:"url" example:"https://libraries.minecraft.net/com/mojang/patchy/1.1/patchy-1.1.jar"` }
type AssetIndexX115 ¶
type AssetIndexX115 struct { ID string `json:"id" example:"1.15"` Sha1 string `json:"sha1" example:"7f84a500c46d0815e70b03f444a6171f0ab23f1d"` Size float64 `json:"size" example:"234878"` TotalSize float64 `json:"totalSize" example:"2.16522528e+08"` URL string `json:"url" example:"https://launchermeta.mojang.com/v1/packages/7f84a500c46d0815e70b03f444a6171f0ab23f1d/1.15.json"` }
type ClassifiersX115 ¶
type ClassifiersX115 struct { Javadoc JavadocX115 `json:"javadoc"` NativesLinux NativesLinuxX115 `json:"natives-linux"` NativesMacos NativesMacosX115 `json:"natives-macos"` NativesOsx NativesOsxX115 `json:"natives-osx"` NativesWindows NativesWindowsX115 `json:"natives-windows"` Sources SourcesX115 `json:"sources"` }
type ClientMappingsX115 ¶
type ClientX115 ¶
type ClientX115jar ¶
type DownloadsX115 ¶
type DownloadsX115 struct { Artifact ArtifactX115 `json:"artifact"` Classifiers ClassifiersX115 `json:"classifiers"` }
type DownloadsX115jar ¶
type DownloadsX115jar struct { Client ClientX115jar `json:"client"` ClientMappings ClientMappingsX115 `json:"client_mappings"` Server ServerX115 `json:"server"` ServerMappings ServerMappingsX115 `json:"server_mappings"` }
type ExtractX115 ¶
type ExtractX115 struct {
Exclude []string `json:"exclude" example:"META-INF/"`
}
type FileX115 ¶
type FileX115 struct { ID string `json:"id" example:"client-1.12.xml"` Sha1 string `json:"sha1" example:"ef4f57b922df243d0cef096efe808c72db042149"` Size int `json:"size" example:"877"` URL string `json:"url" example:"https://launcher.mojang.com/v1/objects/ef4f57b922df243d0cef096efe808c72db042149/client-1.12.xml"` }
type Gameinfo ¶
type Gameinfo struct { //D:/mc/.minecraft Minecraftpath string //4096 RAM string //xmdhs Name string //9f51573a5ec545828c2b09f7f08497b1 UUID string //eyJhbGciOiJIUzI1NiJ9 AccessToken string //D:/mc/.minecraft/versions/1.15.2/ Gamedir string //1.15.2 Version string //1.15.json []byte Jsonbyte []byte Flag []string //"{\"preferredLanguage\":[\"zh-cn\"],\"registrationCountry\":[\"CN\"]}" Userproperties string // contains filtered or unexported fields }
func (*Gameinfo) Jvmflagrelace ¶
func (*Gameinfo) Libraries2LibraryX115 ¶
func (g *Gameinfo) Libraries2LibraryX115(l Librarie) LibraryX115
type JavadocX115 ¶
type JavadocX115 struct { Path string `json:"path" example:"org/lwjgl/lwjgl/3.2.1/lwjgl-3.2.1-javadoc.jar"` Sha1 string `json:"sha1" example:"1f6b7050737559b775d797c0ea56612b8e373fd6"` Size float64 `json:"size"` URL string `json:"url" example:"https://libraries.minecraft.net/org/lwjgl/lwjgl/3.2.1/lwjgl-3.2.1-javadoc.jar"` }
type LauncherjsonX115 ¶
type Librarie ¶
type Librarie struct { Name string `json:"name"` Url string `json:"url"` Clientreq bool `json:"clientreq"` Serverreq bool `json:"serverreq"` Downloads DownloadsX115 `json:"downloads"` }
type LibraryX115 ¶
type LibraryX115 struct { Downloads DownloadsX115 `json:"downloads"` Extract ExtractX115 `json:"extract"` Name string `json:"name" example:"com.mojang:patchy:1.1"` Natives NativesX115 `json:"natives"` Rules []RuleX115 `json:"rules"` }
type LoggingX115 ¶
type LoggingX115 struct {
Client ClientX115 `json:"client"`
}
type NativesLinuxX115 ¶
type NativesLinuxX115 struct { Path string `json:"path" example:"org/lwjgl/lwjgl/3.2.1/lwjgl-3.2.1-natives-linux.jar"` Sha1 string `json:"sha1" example:"9bdd47cd63ce102cec837a396c8ded597cb75a66"` Size float64 `json:"size"` URL string `json:"url" example:"https://libraries.minecraft.net/org/lwjgl/lwjgl/3.2.1/lwjgl-3.2.1-natives-linux.jar"` }
type NativesMacosX115 ¶
type NativesMacosX115 struct { Path string `json:"path" example:"org/lwjgl/lwjgl/3.2.1/lwjgl-3.2.1-natives-macos.jar"` Sha1 string `json:"sha1" example:"5a4c271d150906858d475603dcb9479453c60555"` Size float64 `json:"size"` URL string `json:"url" example:"https://libraries.minecraft.net/org/lwjgl/lwjgl/3.2.1/lwjgl-3.2.1-natives-macos.jar"` }
type NativesOsxX115 ¶
type NativesOsxX115 struct { Path string `json:"path" example:"ca/weblite/java-objc-bridge/1.0.0/java-objc-bridge-1.0.0-natives-osx.jar"` Sha1 string `json:"sha1" example:"08befab4894d55875f33c3d300f4f71e6e828f64"` Size int `json:"size" example:"5629"` URL string `json:"url" example:"https://libraries.minecraft.net/ca/weblite/java-objc-bridge/1.0.0/java-objc-bridge-1.0.0-natives-osx.jar"` }
type NativesWindowsX115 ¶
type NativesWindowsX115 struct { Path string `json:"path" example:"org/lwjgl/lwjgl/3.2.1/lwjgl-3.2.1-natives-windows.jar"` Sha1 string `json:"sha1" example:"e799d06b8969db0610e68776e0eff4b6191098bd"` Size float64 `json:"size"` URL string `json:"url" example:"https://libraries.minecraft.net/org/lwjgl/lwjgl/3.2.1/lwjgl-3.2.1-natives-windows.jar"` }
type NativesX115 ¶
type PatchX115 ¶
type PatchX115 struct { MinecraftArguments string `json:"minecraftArguments"` AssetIndex AssetIndexX115 `json:"assetIndex"` Arguments ArgumentsX115 `json:"arguments"` Assets string `json:"assets" example:"1.15"` Downloads DownloadsX115jar `json:"downloads"` ID string `json:"id" example:"game"` Libraries []LibraryX115 `json:"libraries"` Logging LoggingX115 `json:"logging"` MainClass string `json:"mainClass" example:"net.minecraft.client.main.Main"` MinimumLauncherVersion int `json:"minimumLauncherVersion" example:"21"` Priority int `json:"priority" example:"0"` ReleaseTime string `json:"releaseTime" example:"2020-01-17T18:03:52+08:00"` Time string `json:"time" example:"2020-01-17T18:03:52+08:00"` Type string `json:"type" example:"release"` Version string `json:"version" example:"1.15.2"` }
type ServerMappingsX115 ¶
type ServerX115 ¶
type SourcesX115 ¶
type SourcesX115 struct { Path string `json:"path" example:"org/lwjgl/lwjgl/3.2.1/lwjgl-3.2.1-sources.jar"` Sha1 string `json:"sha1" example:"106f90ac41449004a969309488aa6e3a2f7d6731"` Size float64 `json:"size"` URL string `json:"url" example:"https://libraries.minecraft.net/org/lwjgl/lwjgl/3.2.1/lwjgl-3.2.1-sources.jar"` }
Click to show internal directories.
Click to hide internal directories.