launcher

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2024 License: MIT Imports: 16 Imported by: 2

Documentation

Index

Constants

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

Variables

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

Functions

func FullLibraryX115 added in v1.4.6

func FullLibraryX115(l *LibraryX115, url string) [3]string

func Ifallow added in v1.1.12

func Ifallow(l LibraryX115) bool

func Name2path

func Name2path(name string) [3]string

Name2path return [<group>,<name>,<version>]

Types

type ErrLegacyNoExit added in v1.4.0

type ErrLegacyNoExit struct {
	// contains filtered or unexported fields
}

func (ErrLegacyNoExit) Error added in v1.4.0

func (e ErrLegacyNoExit) Error() string

func (ErrLegacyNoExit) Unwrap added in v1.4.0

func (e ErrLegacyNoExit) Unwrap() error

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"`
	ID     string `json:"id"`

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

type Librarie

type Librarie struct {
	Url       string `json:"url"`
	Clientreq bool   `json:"clientreq"`
	Serverreq bool   `json:"serverreq"`
	LibraryX115
}

type LibraryX115

type LibraryX115 struct {
	Downloads downloadsX115 `json:"downloads"`
	Extract   extractX115   `json:"extract"`
	Name      string        `json:"name"`
	Natives   nativesX115   `json:"natives"`
	Rules     []ruleX115    `json:"rules"`
}

type Modsjson

type Modsjson struct {
	//1.15.2
	InheritsFrom string `json:"inheritsFrom"`

	Libraries []Librarie   `json:"libraries"`
	Logging   *loggingX115 `json:"logging"`
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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