blocks

package
v0.0.0-...-18414ba Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2022 License: GPL-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetGlobalMapping

func GetGlobalMapping() map[string]*NewBlock

func GetLegacyBlockState

func GetLegacyBlockState(id int, data int) int

func GetNameFromNewBlocks

func GetNameFromNewBlocks(protocol uint16, id int) string

func GetNewBlockFromName

func GetNewBlockFromName(name string, protocol uint16) int

func GetTypeDataFromLegacy

func GetTypeDataFromLegacy(legacy int) (int, int)

Types

type NewBlock

type NewBlock struct {
	Name     string
	Fallback *string
	Ids      NewMapping
}

type NewMapping

type NewMapping map[uint16]int

Jump to

Keyboard shortcuts

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