chunks

package
v0.0.0-...-7daa7de Latest Latest
Warning

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

Go to latest
Published: May 17, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ChunkSizeX    = 16
	ChunkSizeY    = 256
	ChunkSizeZ    = 16
	SubChunkSizeY = 16
)

Variables

View Source
var TagTypes = map[string]TagType{
	"ChunkVersion":        ChunkVersion,
	"Data2D":              Data2D,
	"Data2DLegacy":        Data2DLegacy,
	"SubChunkPrefix":      SubChunkPrefix,
	"LegacyTerrain":       LegacyTerrain,
	"BlockEntity":         BlockEntity,
	"Entity":              Entity,
	"PendingTicks":        PendingTicks,
	"BlockExtraData":      BlockExtraData,
	"BiomeState":          BiomeState,
	"UNUSED":              UNUSED,
	"BorderBlocks":        BorderBlocks,
	"HardCodedSpawnAreas": HardCodedSpawnAreas,
	"RandomTicks":         RandomTicks,
	"Checksums":           Checksums,
	"ChunkVersionV116100": ChunkVersionV116100,
}

Functions

func ChunkCoordLittleEndian

func ChunkCoordLittleEndian(coord int, chunkSize int, chunkCoords bool) uint32

Types

type TagType

type TagType int
const (
	ChunkVersion        TagType = 0x2c
	Data2D              TagType = 0x2d
	Data2DLegacy        TagType = 0x2e
	SubChunkPrefix      TagType = 0x2f
	LegacyTerrain       TagType = 0x30
	BlockEntity         TagType = 0x31
	Entity              TagType = 0x32
	PendingTicks        TagType = 0x33
	BlockExtraData      TagType = 0x35
	BiomeState          TagType = 0x35
	UNUSED              TagType = 0x37
	BorderBlocks        TagType = 0x38
	HardCodedSpawnAreas TagType = 0x39
	RandomTicks         TagType = 0x3a
	Checksums           TagType = 0x3b
	ChunkVersionV116100 TagType = 0x76
)

Jump to

Keyboard shortcuts

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