Versions in this module Expand all Collapse all v0 v0.1.2 Mar 4, 2020 v0.1.1 Mar 1, 2020 Changes in this version + var ErrInvalidColumnCoords = errors.New("specified column coordinates are invalid, check region file is correct") + var ErrInvalidColumnSize = errors.New(...) + var ErrOffsetOutOfBounds = errors.New("column location offset is out of bounds") + type Chunk struct + BlockLight []byte + BlockStates []int64 + Palette []struct{ ... } + SkyLight []byte + Y byte + func (c Chunk) Block(x, y, z int) (id string, err error) + type Column struct + Sections []Chunk + XPos int32 + ZPos int32 + func (c Column) Chunk(y byte) (chunk Chunk, err error) + type ColumnLocation []byte + func (cl ColumnLocation) ColumnOffset() (offset uint) + func (cl ColumnLocation) ColumnSize() (size uint) + type Dimension struct + func OpenDimension(regionDir string) *Dimension + func (d *Dimension) Block(x, y, z int) (id string, err error) + type Region struct + ColumnData []byte + Header RegionHeader + X int + Z int + func ParseRegion(r io.Reader) (reg Region, err error) + func (reg *Region) Column(x, z int) (c Column, err error) + type RegionHeader []byte + func (rh RegionHeader) GetColumnLocation(x, z int) (c ColumnLocation, err error)