nbtconv

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Block

func Block(m map[string]any, k string) world.Block

func Bool

func Bool(m map[string]any, k string) bool

func Float32

func Float32(m map[string]any, k string) float32

func Float64

func Float64(m map[string]any, k string) float64

func Int16

func Int16(m map[string]any, k string) int16

func Int32

func Int32(m map[string]any, k string) int32

func Int32FromRGBA

func Int32FromRGBA(x color.RGBA) int32

func Int64

func Int64(m map[string]any, k string) int64

func InvFromNBT

func InvFromNBT(inv *inventory.Inventory, items []any)

func InvToNBT

func InvToNBT(inv *inventory.Inventory) []any

func Item

func Item(data map[string]any, s *item.Stack) item.Stack

func MapItem

func MapItem(x map[string]any, k string) item.Stack

func Pos

func Pos(x map[string]any, k string) cube.Pos

func PosToInt32Slice

func PosToInt32Slice(x cube.Pos) []int32

func RGBAFromInt32

func RGBAFromInt32(x int32) color.RGBA

func Rotation

func Rotation(m map[string]any) cube.Rotation

func Slice

func Slice(m map[string]any, k string) []any

func String

func String(m map[string]any, k string) string

func TickDuration

func TickDuration[T constraints.Integer](m map[string]any, k string) time.Duration

func Uint8

func Uint8(m map[string]any, k string) uint8

func Vec3

func Vec3(x map[string]any, k string) mgl64.Vec3

func Vec3ToFloat32Slice

func Vec3ToFloat32Slice(x mgl64.Vec3) []float32

func WriteBlock

func WriteBlock(b world.Block) map[string]any

func WriteItem

func WriteItem(s item.Stack, disk bool) map[string]any

Types

This section is empty.

Jump to

Keyboard shortcuts

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