Documentation
¶
Overview ¶
*
- Minecraft Forge
- Copyright (c) 2016. *
- This library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation version 2.1
- of the License. *
- This library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details. *
- You should have received a copy of the GNU Lesser General Public
- License along with this library; if not, write to the Free Software
- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
- Minecraft Forge
- Copyright (c) 2016. *
- This library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation version 2.1
- of the License. *
- This library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details. *
- You should have received a copy of the GNU Lesser General Public
- License along with this library; if not, write to the Free Software
- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
- Minecraft Forge
- Copyright (c) 2016. *
- This library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation version 2.1
- of the License. *
- This library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details. *
- You should have received a copy of the GNU Lesser General Public
- License along with this library; if not, write to the Free Software
- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
- Minecraft Forge
- Copyright (c) 2016. *
- This library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation version 2.1
- of the License. *
- This library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details. *
- You should have received a copy of the GNU Lesser General Public
- License along with this library; if not, write to the Free Software
- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
- Minecraft Forge
- Copyright (c) 2016. *
- This library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation version 2.1
- of the License. *
- This library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details. *
- You should have received a copy of the GNU Lesser General Public
- License along with this library; if not, write to the Free Software
- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Index ¶
- func CheckForLauncher()
- func DecompJRE(version string)
- func DecompLauncher()
- func DecompLzma(arcive, target string)
- func DownloadFromUrl(url string, path string)
- func GetJREVersion() string
- func GetJreInfo() (string, string, string, string)
- func GetLauncherUrl() string
- func GetThisArch() string
- func GetThisPlatform() string
- func IsJavaInstalled() bool
- func IsJavaVersionValid() bool
- func IsValidArch() bool
- func IsValidPlatFrom() bool
- func JreLauncher()
- func LaunchWithMojangJava()
- func LaunchWithSysJava()
- func StringFromWebJson(url string) string
- type LauncherJson
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckForLauncher ¶
func CheckForLauncher()
func DecompLauncher ¶
func DecompLauncher()
func DecompLzma ¶
func DecompLzma(arcive, target string)
func DownloadFromUrl ¶
func GetJREVersion ¶
func GetJREVersion() string
func GetLauncherUrl ¶
func GetLauncherUrl() string
func GetThisArch ¶
func GetThisArch() string
func GetThisPlatform ¶
func GetThisPlatform() string
func IsJavaInstalled ¶
func IsJavaInstalled() bool
func IsJavaVersionValid ¶
func IsJavaVersionValid() bool
func IsValidArch ¶
func IsValidArch() bool
func IsValidPlatFrom ¶
func IsValidPlatFrom() bool
func JreLauncher ¶
func JreLauncher()
func LaunchWithMojangJava ¶
func LaunchWithMojangJava()
func LaunchWithSysJava ¶
func LaunchWithSysJava()
func StringFromWebJson ¶
Types ¶
type LauncherJson ¶
type LauncherJson struct { Java struct { Lzma struct { Sha1 string `json:"sha1"` URL string `json:"url"` } `json:"lzma"` Sha1 string `json:"sha1"` } `json:"java"` Osx struct { Arch64 struct { Jdk struct { Sha1 string `json:"sha1"` URL string `json:"url"` Version string `json:"version"` } `json:"jdk"` Jre struct { Sha1 string `json:"sha1"` URL string `json:"url"` Version string `json:"version"` } `json:"jre"` } `json:"64"` Apphash string `json:"apphash"` Applink string `json:"applink"` Downloadhash string `json:"downloadhash"` } `json:"osx"` Windows struct { Arch32 struct { Jdk struct { Sha1 string `json:"sha1"` URL string `json:"url"` Version string `json:"version"` } `json:"jdk"` Jre struct { Sha1 string `json:"sha1"` URL string `json:"url"` Version string `json:"version"` } `json:"jre"` } `json:"32"` Arch64 struct { Jdk struct { Sha1 string `json:"sha1"` URL string `json:"url"` Version string `json:"version"` } `json:"jdk"` Jre struct { Sha1 string `json:"sha1"` URL string `json:"url"` Version string `json:"version"` } `json:"jre"` } `json:"64"` Apphash string `json:"apphash"` Applink string `json:"applink"` } `json:"windows"` }
Click to show internal directories.
Click to hide internal directories.