Documentation
¶
Index ¶
- Constants
- Variables
- func InstallModLoaderLibraries(libraries []*util.Library, downloader *util.Downloader, libraryLocation string) error
- type FabricModLoader
- func (f *FabricModLoader) GetClientLibraries() ([]*util.Library, error)
- func (f *FabricModLoader) GetLaunchArguments() (string, error)
- func (f *FabricModLoader) GetMainclass() (string, error)
- func (f *FabricModLoader) GetServerJarFilename() (string, error)
- func (f *FabricModLoader) GetServerLibraries() ([]*util.Library, error)
- func (f *FabricModLoader) InstallClient(installLocation string, downloader *util.Downloader) error
- func (f *FabricModLoader) InstallServer(installLocation string, downloader *util.Downloader) error
- type ForgeModLoader
- func (f *ForgeModLoader) GetClientLibraries() ([]*util.Library, error)
- func (f *ForgeModLoader) GetLaunchArguments() (string, error)
- func (f *ForgeModLoader) GetMainclass() (string, error)
- func (f *ForgeModLoader) GetServerLibraries() ([]*util.Library, error)
- func (f *ForgeModLoader) InstallClient(installLocation string, downloader *util.Downloader) error
- func (f *ForgeModLoader) InstallServer(installLocation string, downloader *util.Downloader) error
- type ModLoader
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 ¶
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 }
Click to show internal directories.
Click to hide internal directories.