forge

package
v0.0.0-...-f62ce13 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildURL

func BuildURL(minecraft *MinecraftVersion, installer *InstallerVersion) string

func GetURL

func GetURL(mverInput, iverInput string, useLatest bool) string

Types

type ByVersion

type ByVersion []MinecraftVersion

func (ByVersion) Len

func (a ByVersion) Len() int

func (ByVersion) Less

func (a ByVersion) Less(i, j int) bool

func (ByVersion) Swap

func (a ByVersion) Swap(i, j int)

type InstallerVersion

type InstallerVersion struct {
	Version string
	Type    string
}

type MinecraftVersion

type MinecraftVersion struct {
	Major int
	Minor int
	Patch int

	IsPrerelease      bool
	PrereleaseVersion int
}

Forge Minecraft versions use a faux semantic versioning scheme (most of the time). Major, minor and patch correspond to similar ones in semantic versioning: X.x.p. Prerelease versions contain a _preX suffix, such as 1.7.10_pre4.

func (*MinecraftVersion) String

func (minecraft *MinecraftVersion) String() string

type PromotionsSlim

type PromotionsSlim struct {
	Promos map[string]string `json:"promos"`
}

Jump to

Keyboard shortcuts

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