forge

package
v0.0.0-...-4a1ec1a Latest Latest
Warning

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

Go to latest
Published: May 31, 2022 License: MPL-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Installer

type Installer struct {
	// The URL to Minecraft Forge's Maven, or a mirror.
	MavenRoot *url.URL
}

func NewInstaller

func NewInstaller() *Installer

NewInstaller returns a new Installer to use for installing Minecraft Forge.

func (*Installer) InstallForge

func (i *Installer) InstallForge(target minecraft.InstallTarget, dest string, mcVersion *minecraft.Version, forgeVersion string) error

Installs Minecraft Forge to the given destination, for the given target. If the target is Server, the destination will be the root directory of the server; if the target is Client, the destination will be the launcher's root directory.

type Version

type Version struct {
	Build int
}

TODO: understand Forge versions better

func ParseVersion

func ParseVersion(version string) (*Version, error)

Jump to

Keyboard shortcuts

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