define

package
v1.99.0 Latest Latest
Warning

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

Go to latest
Published: May 22, 2026 License: MIT Imports: 3 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Version

type Version struct {
	Major    int32
	Minor    int32
	Patch    int32
	Revision int32
}

Version is a four-part Minecraft version.

func ParseSchemaFileVersion

func ParseSchemaFileVersion(name string) (Version, error)

ParseSchemaFileVersion parses the target version from a schema file name.

func ParseVersion

func ParseVersion(text string) (Version, error)

ParseVersion parses a Minecraft version string such as "1.20.10.24".

func VersionFromID

func VersionFromID(id int32) Version

VersionFromID decodes a block state version ID into a Version.

func (Version) Compare

func (v Version) Compare(other Version) int

Compare compares v with other.

func (Version) ID

func (v Version) ID() int32

ID encodes v into the block state version ID format.

func (Version) Next

func (v Version) Next() Version

Next returns the next representable version after v.

Jump to

Keyboard shortcuts

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