Versions in this module Expand all Collapse all v0 v0.0.2 Oct 24, 2022 v0.0.1 Aug 27, 2022 Changes in this version + const NodeSizeInBytes + type Backend interface + Close func() + GetBlockData func(pos spatial.BlockPosition) ([]byte, error) + type MapBlock struct + func DecodeMapBlock(data []byte) (*MapBlock, error) + func (b *MapBlock) GetNode(pos spatial.NodePosition) Node + func (b *MapBlock) ResolveName(id uint16) string + type Node struct + ID uint16 + Param1 uint8 + Param2 uint8 + type PostgresBackend struct + func NewPostgresBackend(dsn string) (*PostgresBackend, error) + func (p *PostgresBackend) Close() + func (p *PostgresBackend) GetBlockData(pos spatial.BlockPosition) ([]byte, error) + type ReaderCounter struct + func NewReaderCounter(r *bytes.Reader) *ReaderCounter + func (r *ReaderCounter) Read(p []byte) (n int, err error) + func (r *ReaderCounter) ReadByte() (byte, error) + type World struct + func NewWorldWithBackend(backend Backend) World + func (w *World) GetBlock(pos spatial.BlockPosition) (*MapBlock, error)