item

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2025 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BlockStateFromItem

func BlockStateFromItem(item Item) (blockupgrader.BlockState, bool)

func BlockStateFromItemName

func BlockStateFromItemName(itemName string, metadata uint32) (blockupgrader.BlockState, bool)

Types

type Item

type Item struct {
	Name     string
	Metadata uint32
	Version  uint16
}

Item ...

func Downgrade

func Downgrade(item Item, ver uint16) Item

Downgrade downgrades the given item using the registered item upgrade schemas.

func Upgrade

func Upgrade(item Item, ver uint16) Item

Upgrade upgrades the given item using the registered item upgrade schemas.

Jump to

Keyboard shortcuts

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