modpacker

package
v0.0.0-...-1acd2bc Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2020 License: Unlicense Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MethodFile     = ""
	MethodHTTP     = "http"
	MethodCurse    = "curse"
	MethodOptifine = "optifine"
)
View Source
const (
	ActionNone  = ""
	ActionUnzip = "unzip"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Mod

type Mod struct {
	// Path is the file name in modpack archive.
	Path string

	// Method is the method used for downloading the mod.
	// Possible values: "", "curse", "optifine", "http".
	Method string

	// Action is the additional action to perform
	// on the downloaded file (e.g. "unzip" world save).
	Action string

	// File specifies the OptiFine file name.
	File string

	// ProjectID specifies the project ID on CurseForge.
	ProjectID int
	// FileID specifies the file ID of the CurseForge project.
	FileID int

	// Sums is a list of expected file checksums.
	Sums []string
}

Jump to

Keyboard shortcuts

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