modloader

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

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

Go to latest
Published: Jan 22, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const CURSE_MODLOADER_INFO_URL = "https://addons-ecs.forgesvc.net/api/v2/minecraft/modloader"
View Source
const FABRIC_MAVEN_URL = "https://maven.fabricmc.net/"
View Source
const FABRIC_META_URL = "https://meta.fabricmc.net/v2/versions"
View Source
const FORGE_REPO_URL = "https://files.minecraftforge.net/maven/"

Variables

View Source
var INCOMPATIBLE_FORGE_VERSION = []string{"14.23.5.2851"}

Functions

func InstallModLoaderLibraries

func InstallModLoaderLibraries(libraries []*util.Library, downloader *util.Downloader, libraryLocation string) error

Types

type FabricModLoader

type FabricModLoader struct {
	// contains filtered or unexported fields
}

func NewFabricModLoader

func NewFabricModLoader(minecraftVersion string, loaderVersion string) *FabricModLoader

func (*FabricModLoader) GetClientLibraries

func (f *FabricModLoader) GetClientLibraries() ([]*util.Library, error)

func (*FabricModLoader) GetLaunchArguments

func (f *FabricModLoader) GetLaunchArguments() (string, error)

func (*FabricModLoader) GetMainclass

func (f *FabricModLoader) GetMainclass() (string, error)

func (*FabricModLoader) GetServerJarFilename

func (f *FabricModLoader) GetServerJarFilename() (string, error)

func (*FabricModLoader) GetServerLibraries

func (f *FabricModLoader) GetServerLibraries() ([]*util.Library, error)

func (*FabricModLoader) InstallClient

func (f *FabricModLoader) InstallClient(installLocation string, downloader *util.Downloader) error

func (*FabricModLoader) InstallServer

func (f *FabricModLoader) InstallServer(installLocation string, downloader *util.Downloader) error

type ForgeModLoader

type ForgeModLoader struct {
	// contains filtered or unexported fields
}

func NewForgeModLoader

func NewForgeModLoader(minecraftVersion string, loaderVersion string, downloader *util.Downloader) *ForgeModLoader

func (*ForgeModLoader) GetClientLibraries

func (f *ForgeModLoader) GetClientLibraries() ([]*util.Library, error)

func (*ForgeModLoader) GetLaunchArguments

func (f *ForgeModLoader) GetLaunchArguments() (string, error)

func (*ForgeModLoader) GetMainclass

func (f *ForgeModLoader) GetMainclass() (string, error)

func (*ForgeModLoader) GetServerLibraries

func (f *ForgeModLoader) GetServerLibraries() ([]*util.Library, error)

func (*ForgeModLoader) InstallClient

func (f *ForgeModLoader) InstallClient(installLocation string, downloader *util.Downloader) error

func (*ForgeModLoader) InstallServer

func (f *ForgeModLoader) InstallServer(installLocation string, downloader *util.Downloader) error

type ModLoader

type ModLoader interface {
	GetLaunchArguments() (string, error)
	GetClientLibraries() ([]*util.Library, error)
	GetServerLibraries() ([]*util.Library, error)
	GetMainclass() (string, error)

	InstallClient(installLocation string, downloader *util.Downloader) error
	InstallServer(installLocation string, downloader *util.Downloader) error
}

Jump to

Keyboard shortcuts

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