# Functions
DiskDecode decodes the data from a SerialisedData object into a chunk and returns it.
DiskEncode encodes a chunk to its disk representation, so that it may be stored in a database, giving other servers the ability to read the chunk.
FillLight executes the light 'filling' stage, where the chunk is filled with light coming only from the chunk itself, without light crossing chunk borders.
NetworkDecode decodes the network serialised data passed into a Chunk if successful.
NetworkEncode encodes a chunk passed to its network representation and returns it as a SerialisedData, which may be sent over network.
New initialises a new chunk and returns it, so that it may be used.
SpreadLight executes the light 'spreading' stage, where the chunk has its light spread into the neighbouring chunks.
# Constants
SubChunkVersion is the current version of the written sub chunks, specifying the format they are written on disk and over network.
# Variables
No description provided by the author
FilteringBlocks is a map for checking if a block runtime ID filters light, and if so, how many levels.
LightBlocks is a list of block light levels (0-15) indexed by block runtime IDs.
RuntimeIDToState must hold a function to convert a runtime ID to a name and its state properties.
StateToRuntimeID must hold a function to convert a name and its state properties to a runtime ID.
# Structs
BlockStorage is a storage of 4096 blocks encoded in a variable amount of uint32s, storages may have blocks with a bit size per block of 1, 2, 3, 4, 5, 6, 8 or 16 bits.
Chunk is a segment in the world with a size of 16x16x256 blocks.
Palette is a palette of runtime IDs that every block storage has.
SerialisedData holds the serialised data of a chunk.
SubChunk is a cube of blocks located in a chunk.