4#ifndef LODESTONE_LEVELSECTION_H
5#define LODESTONE_LEVELSECTION_H
24 void setBlockLight(
int localX,
int localY,
int localZ, uint8_t lightLevel)
override;
26 void setSkyLight(
int localX,
int localY,
int localZ, uint8_t lightLevel)
override;
Wraps a block with runtime-modifiable properties.
Definition BlockInstance.h:19
static ImmutableBlockInstance * getInstance()
Definition ImmutableBlockInstance.cpp:10
common::storage::bits::BitStorage m_blockLightStorage
Definition LevelSection.h:46
uint64_t getModificationCount() override
Definition LevelSection.cpp:48
lodestone::common::storage::bits::AbstractBitStorage * getBlockLightStorage() override
Definition LevelSection.cpp:17
void setBlockLight(int localX, int localY, int localZ, uint8_t lightLevel) override
Definition LevelSection.cpp:25
~LevelSection() override
Definition LevelSection.cpp:9
const block::instance::BlockInstance & getBlock(int localX, int localY, int localZ) const override
Definition LevelSection.cpp:39
void setBlock(block::instance::BlockInstance &&block, int localX, int localY, int localZ) override
Definition LevelSection.cpp:52
lodestone::common::storage::bits::AbstractBitStorage * getSkyLightStorage() override
Definition LevelSection.cpp:21
void setSkyLight(int localX, int localY, int localZ, uint8_t lightLevel) override
Definition LevelSection.cpp:31
unsigned long m_modificationCount
Definition LevelSection.h:52
SectionType type() override
Definition LevelSection.cpp:13
common::storage::bits::BitStorage m_skyLightStorage
Definition LevelSection.h:47
common::storage::palette::PalletizedStorage< block::instance::BlockInstance > m_blockStorage
Definition LevelSection.h:41
const common::storage::palette::PalletizedStorage< block::instance::BlockInstance > & getBlockStorage() override
Definition LevelSection.cpp:44
const char ** m_biomes
Definition LevelSection.h:50
static constexpr int TOTAL_SECTION_3D_SIZE
Definition Section.h:23
static constexpr int TOTAL_SECTION_2D_SIZE
Definition Section.h:24
Definition ImmutableSection.cpp:8
SectionType
Definition Section.h:19