mojangdl

package
v2.7.1 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const VersionJsonUrl = "https://launchermeta.mojang.com/mc/game/version_manifest.json"

Variables

This section is empty.

Functions

This section is empty.

Types

type DownloadType

type DownloadType struct {
	Sha1 string `json:"sha1"`
	Size uint64 `json:"size"`
	Url  string `json:"url"`
}

type Latest

type Latest struct {
	Release  string `json:"release"`
	Snapshot string `json:"snapshot"`
}

type LauncherJson

type LauncherJson struct {
	Versions []LauncherVersion `json:"versions"`
	Latest   Latest            `json:"latest"`
}

type LauncherVersion

type LauncherVersion struct {
	Id   string `json:"id"`
	Url  string `json:"url"`
	Type string `json:"type"`
}

type MojangDl

type MojangDl struct {
	Version string
	Target  string
}

func (MojangDl) Run

func (op MojangDl) Run(env pufferpanel.Environment) error

type OperationFactory

type OperationFactory struct {
	pufferpanel.OperationFactory
}
var Factory OperationFactory

func (OperationFactory) Create

func (of OperationFactory) Create(op pufferpanel.CreateOperation) (pufferpanel.Operation, error)

func (OperationFactory) Key

func (of OperationFactory) Key() string

type VersionJson

type VersionJson struct {
	Downloads map[string]DownloadType `json:"downloads"`
}

Jump to

Keyboard shortcuts

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