level

package
v0.0.0-...-82b4563 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2026 License: LGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BlocksPerChunkSection = 4096
	BiomesPerChunkSection = 64
)

Variables

This section is empty.

Functions

func LongsToData

func LongsToData(data []uint64, n, bpe int32) (ret []int32)

func UnpackArrayPalette

func UnpackArrayPalette(r io.Reader, bitsPerEntry uint8, numberOfEntries int) (data []int32, err error)

func UnpackBiomeData

func UnpackBiomeData(r io.Reader) (biomes [BiomesPerChunkSection]int32, err error)

func UnpackBlockData

func UnpackBlockData(r io.Reader) (blocks [BlocksPerChunkSection]int32, err error)

func UnpackLongData

func UnpackLongData(r io.Reader, bitsPerEntry uint8, numberOfEntries int) (data []int32, err error)

func UnpackSingleValuePalette

func UnpackSingleValuePalette(r io.Reader, numberOfEntries int) (data []int32, err error)

Types

type ChunkSection

type ChunkSection struct {
	BlockData [BlocksPerChunkSection]int32
	BiomeData [BiomesPerChunkSection]int32
}

func UnpackSection

func UnpackSection(r io.Reader) (s ChunkSection, err error)

Jump to

Keyboard shortcuts

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