minecraft

package
v0.5.6 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SupportedVersions = []Version{
	&paperMcVersion{"1.20.6", 147},
	&paperMcVersion{"1.17.1", 399},
	&paperMcVersion{"1.16.5", 792},
}

SupportedVersions slice of all the supported Minecraft versions. To be supported, two things must be true:

  1. We must have a JAR build of `bukkit-runtime` for that version
  2. There must be a PaperMC build in that Minecraft version

Functions

This section is empty.

Types

type Version

type Version interface {
	String() string
	ApiVersion() string
	ServerJarType() string
	ServerJarUrl() string
}

func FindVersion

func FindVersion(version string) Version

FindVersion finds a supported version with the given version string

func LatestVersion

func LatestVersion() Version

LatestVersion gets the latest Minecraft version available

Jump to

Keyboard shortcuts

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