pkg

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2026 License: LGPL-3.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DownloadWg sync.WaitGroup

Functions

func Common added in v1.4.0

func Common(config core.InstConfig, cleaninst bool)

func CompareForgeVersions added in v1.4.0

func CompareForgeVersions(a, b string) int

func CurseForge added in v1.4.0

func CurseForge(file string, MaxCon int, Args string, bundleName string)

func DownloadLibraries

func DownloadLibraries(versionInfo core.VersionInfo, librariesDir string, maxConnections int, downloadapi string) error

func DownloadServerJar

func DownloadServerJar(version, loader, librariesDir string) error

func FabricB

func FabricB(config core.InstConfig, simpfun bool, mise bool)

func FetchLatestFabricMinecraftVersion added in v1.4.0

func FetchLatestFabricMinecraftVersion() (string, error)

func FetchLatestForgeLoaderForVersion added in v1.4.0

func FetchLatestForgeLoaderForVersion(mcVersion string) (string, error)

func FetchLatestForgeVersion added in v1.4.0

func FetchLatestForgeVersion() (string, string, error)

func FetchLatestMatchingNeoForgeVersion added in v1.4.0

func FetchLatestMatchingNeoForgeVersion(mcVersion string) (string, error)

func FetchLatestNeoForgeVersion added in v1.4.0

func FetchLatestNeoForgeVersion() (string, error)

func FetchLatestStableFabricLoaderVersion added in v1.4.0

func FetchLatestStableFabricLoaderVersion() (string, error)

func FetchLatestVanillaVersion added in v1.4.0

func FetchLatestVanillaVersion(downloadSource string) (string, error)

func ForgeB

func ForgeB(config core.InstConfig, simpfun bool, mise bool)

func Modrinth

func Modrinth(file string, MaxCon int, Args string, bundleName string)

func NeoForgeB

func NeoForgeB(config core.InstConfig, simpfun bool, mise bool)

func SPCInstall

func SPCInstall(file string, MaxCon int, Args string, bundleName string)
func Search(MaxConnections int, Argsment string)

func WaitDownloads added in v1.4.0

func WaitDownloads()

Types

type CFError added in v1.4.0

type CFError struct {
	StatusCode int
	Body       string
}

func (*CFError) Error added in v1.4.0

func (e *CFError) Error() string

type CurseForgeManifest added in v1.4.0

type CurseForgeManifest struct {
	Minecraft struct {
		Version    string `json:"version"`
		ModLoaders []struct {
			ID      string `json:"id"`
			Primary bool   `json:"primary"`
		} `json:"modLoaders"`
	} `json:"minecraft"`
	Overrides string `json:"overrides"`
	Files     []struct {
		ProjectID int  `json:"projectID"`
		FileID    int  `json:"fileID"`
		Required  bool `json:"required"`
	} `json:"files"`
}

type ModrinthDependencies added in v1.4.0

type ModrinthDependencies struct {
	Minecraft    string
	NeoForge     string
	Forge        string
	Fabric       string
	FabricLoader string
}

func (*ModrinthDependencies) UnmarshalJSON added in v1.4.0

func (d *ModrinthDependencies) UnmarshalJSON(data []byte) error

type ModrinthIndex

type ModrinthIndex struct {
	Files []struct {
		Path      string            `json:"path"`
		Env       map[string]string `json:"env"`
		Downloads []string          `json:"downloads"`
	} `json:"files"`
	Dependencies ModrinthDependencies `json:"dependencies"`
}

Jump to

Keyboard shortcuts

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