keyrevision

package
v0.21.4 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Applicable

func Applicable(rev Revision, protocol proto.Protocol) bool

Applicable returns whether the revision is applicable to the protocol version.

Types

type Revision

type Revision interface {
	ApplicableTo() []proto.Protocol
}
var (
	GenericV1 Revision = &revision{
		name: "GenericV1",
		applicableTo: []proto.Protocol{
			version.Minecraft_1_19.Protocol,
		},
	}
	LinkedV2 Revision = &revision{
		name: "LinkedV2",
		applicableTo: []proto.Protocol{
			version.Minecraft_1_19_1.Protocol,
		},
	}
)

Jump to

Keyboard shortcuts

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