launcher

package
v1.3.16 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 2, 2021 License: MIT Imports: 13 Imported by: 2

Documentation

Index

Constants

View Source
const (
	Launcherbrand   string = "GML"
	Launcherversion string = "1.3.16"
)
View Source
const Minecraft string = ".minecraft"

Variables

View Source
var JsonErr = errors.New("json err")
View Source
var JsonNorTrue = errors.New("json not true")

Functions

func Ifallow added in v1.1.12

func Ifallow(l LibraryX115) bool

func Name2path

func Name2path(name string) []string

Types

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
	Log            bool
	JavePath       string
	ApiAddress     string
	// contains filtered or unexported fields
}

func (*Gameinfo) GenLauncherCmdArgs added in v1.3.12

func (g *Gameinfo) GenLauncherCmdArgs() (l *launcher1155, args []string, err error)

func (*Gameinfo) Run115

func (g *Gameinfo) Run115() (err error)

type LauncherjsonX115

type LauncherjsonX115 struct {
	Hidden bool   `json:"hidden" example:"false"`
	ID     string `json:"id" example:"1.15.2"`

	Root bool `json:"root" example:"true"`
	// contains filtered or unexported fields
}

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 Modsjson

type Modsjson struct {
	//1.15.2
	MinecraftArguments string        `json:"minecraftArguments"`
	InheritsFrom       string        `json:"inheritsFrom"`
	MainClass          string        `json:"mainClass"`
	ID                 string        `json:"id"`
	Libraries          []Librarie    `json:"libraries"`
	Arguments          argumentsX115 `json:"arguments"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL