mojang_piston

package
v0.0.0-...-10915b2 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2025 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PistonData

type PistonData struct {
	ID                     string    `json:"id"`
	Type                   string    `json:"type"`
	MainClass              string    `json:"mainClass"`
	ReleaseTime            time.Time `json:"releaseTime"`
	Assets                 string    `json:"assets"`
	ComplianceLevel        int       `json:"complianceLevel"`
	MinimumLauncherVersion int       `json:"minimumLauncherVersion"`

	AssetIndex struct {
		ID  string `json:"id"`
		URL string `json:"url"`
	} `json:"assetIndex"`

	Downloads struct {
		Client struct {
			URL string `json:"url"`
		} `json:"client"`
		Server struct {
			URL string `json:"url"`
		} `json:"server"`
	} `json:"downloads"`

	Libraries []struct {
		Name string `json:"name"`
	} `json:"libraries"`

	Logging struct {
		Client struct {
			Argument string `json:"argument"`
		} `json:"client"`
	} `json:"logging"`
}

func GetPistonData

func GetPistonData(url string) PistonData

type PistonMeta

type PistonMeta struct {
	Latest struct {
		Release  string `json:"release"`
		Snapshot string `json:"snapshot"`
	} `json:"latest"`
	Versions []Version `json:"versions"`
}

func GetPistonMeta

func GetPistonMeta() PistonMeta

type Version

type Version struct {
	ID              string    `json:"id"`
	Type            string    `json:"type"`
	URL             string    `json:"url"`
	Time            time.Time `json:"time"`
	ReleaseTime     string    `json:"releaseTime"`
	Sha1            string    `json:"sha1"`
	ComplianceLevel int       `json:"complianceLevel"`
}

Jump to

Keyboard shortcuts

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