Documentation
¶
Index ¶
Constants ¶
View Source
const ( ChunkSize = 16 ChunkHeight = 256 SectionHeight = 16 BlocksPerSection = 4096 BiomesPerSection = 64 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockEntity ¶
type BlockEntity struct { PackedXZ byte Y int16 Type int Data nbt.RawMessage }
type Chunk ¶
type Chunk struct {
Sections []Section
}
func GenerateExampleChunk ¶
func GenerateExampleChunk() *Chunk
type Heightmap ¶
type Heightmap struct { MotionBlocking []int64 `nbt:"MOTION_BLOCKING"` WorldSurface []int64 `nbt:"WORLD_SURFACE"` }
func GenerateExampleHeightmap ¶
func GenerateExampleHeightmap() *Heightmap
type PaletteIndirect ¶
type PaletteIndirect struct {
Palette []int
}
type PaletteSingleValued ¶
type PaletteSingleValued struct {
Value int
}
type PalettedContainer ¶
type PalettedContainer struct { BitsPerEntry byte PaletteSingleValued *PaletteSingleValued PaletteIndirect *PaletteIndirect Data []int64 }
type Section ¶
type Section struct { BlockCount int16 BlockStates []PalettedContainer Biomes []PalettedContainer }
Click to show internal directories.
Click to hide internal directories.