Documentation
¶
Index ¶
- Constants
- func LongsToData(data []uint64, n, bpe int32) (ret []int32)
- func UnpackArrayPalette(r io.Reader, bitsPerEntry uint8, numberOfEntries int) (data []int32, err error)
- func UnpackBiomeData(r io.Reader) (biomes [BiomesPerChunkSection]int32, err error)
- func UnpackBlockData(r io.Reader) (blocks [BlocksPerChunkSection]int32, err error)
- func UnpackLongData(r io.Reader, bitsPerEntry uint8, numberOfEntries int) (data []int32, err error)
- func UnpackSingleValuePalette(r io.Reader, numberOfEntries int) (data []int32, err error)
- type ChunkSection
Constants ¶
View Source
const ( BlocksPerChunkSection = 4096 BiomesPerChunkSection = 64 )
Variables ¶
This section is empty.
Functions ¶
func LongsToData ¶
func UnpackArrayPalette ¶
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 ¶
Types ¶
type ChunkSection ¶
type ChunkSection struct {
BlockData [BlocksPerChunkSection]int32
BiomeData [BiomesPerChunkSection]int32
}
func UnpackSection ¶
func UnpackSection(r io.Reader) (s ChunkSection, err error)
Click to show internal directories.
Click to hide internal directories.