![]() |
Botcraft 1.21.4
|
#include <Section.hpp>
Public Member Functions | |
Section (const bool has_sky_light) | |
Static Public Member Functions | |
static size_t | CoordsToBlockIndex (const int x, const int y, const int z) |
static size_t | CoordsToLightIndex (const int x, const int y, const int z) |
Public Attributes | |
std::vector< unsigned short > | data_blocks |
std::vector< unsigned char > | block_light |
std::vector< unsigned char > | sky_light |
Definition at line 9 of file Section.hpp.
Botcraft::Section::Section | ( | const bool | has_sky_light | ) |
Definition at line 7 of file Section.cpp.
References block_light, Botcraft::CHUNK_WIDTH, data_blocks, Botcraft::SECTION_HEIGHT, and sky_light.
|
static |
Definition at line 23 of file Section.cpp.
References Botcraft::CHUNK_WIDTH.
Referenced by Botcraft::Chunk::GetBlock(), and Botcraft::Chunk::SetBlock().
|
static |
Definition at line 32 of file Section.cpp.
References Botcraft::CHUNK_WIDTH.
Referenced by Botcraft::Chunk::GetBlockLight(), Botcraft::Chunk::GetSkyLight(), Botcraft::Chunk::SetBlockLight(), and Botcraft::Chunk::SetSkyLight().
std::vector<unsigned char> Botcraft::Section::block_light |
Definition at line 17 of file Section.hpp.
Referenced by Section().
std::vector<unsigned short> Botcraft::Section::data_blocks |
Definition at line 16 of file Section.hpp.
Referenced by Section().
std::vector<unsigned char> Botcraft::Section::sky_light |
Definition at line 18 of file Section.hpp.
Referenced by Section().