- createSection
Section* createSection(size_t y)
Undocumented in source. Be warned that the author may not have intended to support it.
- emptySection
bool emptySection(size_t y)
Checks whether or not a section is empty
(has no blocks in it).
- firstBlock
ptrdiff_t firstBlock(ubyte x, ubyte z)
Gets the y position of the first non-air block
from top.
- opBinaryRight
Section* opBinaryRight(size_t y)
Undocumented in source. Be warned that the author may not have intended to support it.
- opIndex
Block* opIndex(BlockPosition position)
Block* opIndex(ubyte x, size_t y, ubyte z)
Gets a block in the chunk.
- opIndex
Section opIndex(size_t y)
- opIndexAssign
Block* opIndexAssign(Block* block, BlockPosition position)
Block* opIndexAssign(block_t block, BlockPosition position)
Block* opIndexAssign(Block* block, ubyte x, uint y, ubyte z)
Block* opIndexAssign(block_t block, ubyte x, uint y, ubyte z)
Sets a block in the chunk.
- registerTile
void registerTile(T tile)
- removeSection
void removeSection(size_t y)
Undocumented in source. Be warned that the author may not have intended to support it.
- resetSnow
void resetSnow()
- save
void save()
Undocumented in source. Be warned that the author may not have intended to support it.
- sectionAt
Section sectionAt(size_t y)
- tickSection
bool tickSection(size_t y)
Checks if a section contains blocks with the random tick.
- tileAt
T tileAt(BlockPosition position)
- unload
void unload()
Unloads a chunks and frees its memory
Classic chunk with the size of 16 * 16.