utils

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2025 License: AGPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BlockStatesDefaultSeparator = "="
	BlockStatesLegacySeparator  = ":"
)

"color":"orange" [legacy] or "color"="orange" [current]

Variables

This section is empty.

Functions

func ParseBlockStatesString

func ParseBlockStatesString(blockStatesString string, isLegacy bool) (result map[string]any)

ParseBlockStatesString ..

func ReadBDXCommand

func ReadBDXCommand(reader *encoding.Reader) (cmd command.Command, err error)

ReadBDXCommand ..

func ReadBDXFileInfo

func ReadBDXFileInfo(path string) (authorName string, reader *encoding.Reader, err error)

ReadBDXFileInfo ..

Types

type BlockPos

type BlockPos [3]int32

BlockPos ..

type MCWorld

type MCWorld struct {
	// contains filtered or unexported fields
}

MCWorld ..

func NewMCWorld

func NewMCWorld(path string, ctx context.Context) (result *MCWorld, err error)

NewMCWorld ..

func (*MCWorld) Close

func (m *MCWorld) Close() (err error)

Close ..

func (*MCWorld) Flush

func (m *MCWorld) Flush()

Flush ..

func (*MCWorld) LoadBlock

func (m *MCWorld) LoadBlock(x int32, y int16, z int32) (blockRuntimeID uint32, err error)

LoadBlock ..

func (*MCWorld) SetBlock

func (m *MCWorld) SetBlock(x int32, y int16, z int32, blockRuntimeID uint32) error

SetBlock ..

func (*MCWorld) SetBlockNBT

func (m *MCWorld) SetBlockNBT(x int32, y int32, z int32, blockNBT map[string]any) error

SetBlockNBT ..

Jump to

Keyboard shortcuts

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