Versions in this module Expand all Collapse all v0 v0.0.0 Dec 30, 2023 Changes in this version + func ChunkToSave(c *Chunk, dst *save.Chunk) (err error) + type BiomesState = biome.Type + type BitStorage struct + func NewBitStorage(bits, length int, data []uint64) (b *BitStorage) + func (b *BitStorage) Fix(bits int) error + func (b *BitStorage) Get(i int) int + func (b *BitStorage) Len() int + func (b *BitStorage) Raw() []uint64 + func (b *BitStorage) ReadFrom(r io.Reader) (int64, error) + func (b *BitStorage) Set(i, v int) + func (b *BitStorage) Swap(i, v int) (old int) + func (b *BitStorage) WriteTo(w io.Writer) (int64, error) + type BlockEntity struct + Data nbt.RawMessage + Type block.EntityType + XZ int8 + Y int16 + func (b *BlockEntity) PackXZ(X, Z int) bool + func (b *BlockEntity) ReadFrom(r io.Reader) (n int64, err error) + func (b BlockEntity) UnpackXZ() (X, Z int) + func (b BlockEntity) WriteTo(w io.Writer) (n int64, err error) + type BlocksState = block.StateID + type Chunk struct + BlockEntity []BlockEntity + HeightMaps HeightMaps + Sections []Section + Status ChunkStatus + func ChunkFromSave(c *save.Chunk) (*Chunk, error) + func EmptyChunk(secs int) *Chunk + func (c *Chunk) Data() ([]byte, error) + func (c *Chunk) PutData(data []byte) error + func (c *Chunk) ReadFrom(r io.Reader) (int64, error) + func (c *Chunk) WriteTo(w io.Writer) (int64, error) + type ChunkPos [2]int32 + func (c *ChunkPos) ReadFrom(r io.Reader) (n int64, err error) + func (c ChunkPos) WriteTo(w io.Writer) (n int64, err error) + type ChunkStatus string + const StatusBiomes + const StatusCarvers + const StatusEmpty + const StatusFeatures + const StatusFull + const StatusHeightmaps + const StatusLight + const StatusLiquidCarvers + const StatusNoise + const StatusSpawn + const StatusStructureReferences + const StatusStructureStarts + const StatusSurface + type HeightMaps struct + MotionBlocking *BitStorage + MotionBlockingNoLeaves *BitStorage + OceanFloor *BitStorage + OceanFloorWG *BitStorage + WorldSurface *BitStorage + WorldSurfaceWG *BitStorage + type PaletteContainer struct + func NewBiomesPaletteContainer(length int, defaultValue BiomesState) *PaletteContainer[BiomesState] + func NewBiomesPaletteContainerWithData(length int, data []uint64, pat []BiomesState) *PaletteContainer[BiomesState] + func NewStatesPaletteContainer(length int, defaultValue BlocksState) *PaletteContainer[BlocksState] + func NewStatesPaletteContainerWithData(length int, data []uint64, pat []BlocksState) *PaletteContainer[BlocksState] + func (p *PaletteContainer[T]) Get(i int) T + func (p *PaletteContainer[T]) Palette() []T + func (p *PaletteContainer[T]) ReadFrom(r io.Reader) (n int64, err error) + func (p *PaletteContainer[T]) Set(i int, v T) + func (p *PaletteContainer[T]) WriteTo(w io.Writer) (n int64, err error) + type Section struct + Biomes *PaletteContainer[BiomesState] + BlockCount int16 + BlockLight []byte + SkyLight []byte + States *PaletteContainer[BlocksState] + func (s *Section) GetBlock(i int) BlocksState + func (s *Section) ReadFrom(r io.Reader) (int64, error) + func (s *Section) SetBlock(i int, v BlocksState) + func (s *Section) WriteTo(w io.Writer) (int64, error) + type State interface