nbtconv

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InvFromNBT

func InvFromNBT(inv *inventory.Inventory, items []interface{})

InvFromNBT decodes the data of an NBT slice into the inventory passed.

func InvToNBT

func InvToNBT(inv *inventory.Inventory) []map[string]interface{}

InvToNBT encodes an inventory to a data slice which may be encoded as NBT.

func ItemFromNBT

func ItemFromNBT(data map[string]interface{}, s *item.Stack) item.Stack

ItemFromNBT decodes the data of an item into an item stack.

func ItemToNBT

func ItemToNBT(s item.Stack, network bool) map[string]interface{}

ItemToNBT encodes an item stack to its NBT representation.

Types

This section is empty.

Jump to

Keyboard shortcuts

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