Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DownloadURL ¶
DownloadURL returns the download URL for the Minecraft vanilla server JAR for a given game version.
Parameters:
- gameVersion: the Minecraft version string (e.g., "1.16.5", "15w14a", "1.18-pre2").
Returns:
- string: the direct download URL for the server JAR file.
- error: an error if the version is not found or if any HTTP or JSON decoding issues occur.
func Versions ¶
Versions fetches the list of all Minecraft vanilla versions from the official Mojang API version manifest.
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 (e.g., "1.16.5", "15w14a", "1.18-pre2").
- error: an error if any HTTP or JSON decoding issues occur.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.