neoforge

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownloadURL

func DownloadURL(gameVersion string, loaderVersion string) (string, error)

DownloadURL returns the download URL for the NeoForge server file for a given game version and loader version. It determines the correct URL format based on the game version.

Parameters:

  • gameVersion: the Minecraft version string (e.g., "1.21.6", "25w14craftmine", "1.21").
  • loaderVersion: the NeoForge loader version string (e.g., "21.0.142-beta", "0.25w14craftmine.5-beta").

Returns:

  • string: the direct download URL for the NeoForge server installer/archive file if the versions exist.
  • error: an error if the game version or loader version is not found, or if any HTTP or XML decoding issues occur.

func Loaders

func Loaders(gameVersion string, latestFirst bool) ([]string, error)

Loaders fetches a list of available NeoForge loader versions for a given Minecraft version. It retrieves the data from the official NeoForged maven metadata.

Parameters:

  • gameVersion: the Minecraft version string (e.g., "1.21.6", "25w14craftmine", "1.21").
  • latestFirst: if true, returns the loader versions with higher versions first. If false, returns the loader versions with lower versions first.

Returns:

  • []string: a slice of NeoForge loader versions (e.g., "21.0.142-beta", "0.25w14craftmine.5-beta").
  • error: an error if the game version is not supported or if any HTTP or XML decoding issues occur.

func Versions

func Versions(latestFirst bool) ([]string, error)

Versions fetches the list of all Minecraft NeoForge-supported game versions from the official NeoForged maven metadata.

Parameters:

  • latestFirst: if true, returns the versions with higher versions first. If false, returns the versions with lower versions first.

Returns:

  • []string: a slice of Minecraft versions supported by NeoForge (e.g., "1.21.6", "25w14craftmine", "1.21").
  • error: an error if any HTTP or XML decoding issues occur.

Types

This section is empty.

Jump to

Keyboard shortcuts

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