Lodestone.Level
Loading...
Searching...
No Matches
lodestone::level::chunk::section::Section Class Referenceabstract

#include <Section.h>

Inheritance diagram for lodestone::level::chunk::section::Section:
Collaboration diagram for lodestone::level::chunk::section::Section:

Public Member Functions

virtual const common::storage::palette::PalletizedStorage< block::instance::BlockInstance > & getBlockStorage ()=0
virtual common::storage::bits::AbstractBitStorage * getBlockLightStorage ()=0
virtual common::storage::bits::AbstractBitStorage * getSkyLightStorage ()=0
virtual void setBlockLight (int localX, int localY, int localZ, uint8_t lightLevel)=0
virtual void setSkyLight (int localX, int localY, int localZ, uint8_t lightLevel)=0
virtual const block::instance::BlockInstance & getBlock (const int localX, const int localY, const int localZ) const =0
virtual void setBlock (block::instance::BlockInstance &&block, int localX, int localY, int localZ)=0
virtual uint64_t getModificationCount ()=0
Public Member Functions inherited from lodestone::common::util::IHasDerivedTypes< SectionType >
constexpr IHasDerivedTypes ()=default
virtual constexpr ~IHasDerivedTypes ()=default
virtual constexpr EType type ()=0
bool constexpr instanceOf (EType type)

Static Public Attributes

static constexpr int TOTAL_SECTION_3D_SIZE = common::constants::CHUNK_WIDTH * common::constants::SECTION_HEIGHT * common::constants::CHUNK_DEPTH
static constexpr int TOTAL_SECTION_2D_SIZE = common::constants::CHUNK_WIDTH * common::constants::CHUNK_DEPTH

Member Function Documentation

◆ getBlock()

virtual const block::instance::BlockInstance & lodestone::level::chunk::section::Section::getBlock ( const int localX,
const int localY,
const int localZ ) const
pure virtual

◆ getBlockLightStorage()

virtual common::storage::bits::AbstractBitStorage * lodestone::level::chunk::section::Section::getBlockLightStorage ( )
pure virtual

◆ getBlockStorage()

virtual const common::storage::palette::PalletizedStorage< block::instance::BlockInstance > & lodestone::level::chunk::section::Section::getBlockStorage ( )
pure virtual

◆ getModificationCount()

virtual uint64_t lodestone::level::chunk::section::Section::getModificationCount ( )
pure virtual

◆ getSkyLightStorage()

virtual common::storage::bits::AbstractBitStorage * lodestone::level::chunk::section::Section::getSkyLightStorage ( )
pure virtual

◆ setBlock()

virtual void lodestone::level::chunk::section::Section::setBlock ( block::instance::BlockInstance && block,
int localX,
int localY,
int localZ )
pure virtual

◆ setBlockLight()

virtual void lodestone::level::chunk::section::Section::setBlockLight ( int localX,
int localY,
int localZ,
uint8_t lightLevel )
pure virtual

◆ setSkyLight()

virtual void lodestone::level::chunk::section::Section::setSkyLight ( int localX,
int localY,
int localZ,
uint8_t lightLevel )
pure virtual

Member Data Documentation

◆ TOTAL_SECTION_2D_SIZE

int lodestone::level::chunk::section::Section::TOTAL_SECTION_2D_SIZE = common::constants::CHUNK_WIDTH * common::constants::CHUNK_DEPTH
staticconstexpr

◆ TOTAL_SECTION_3D_SIZE

int lodestone::level::chunk::section::Section::TOTAL_SECTION_3D_SIZE = common::constants::CHUNK_WIDTH * common::constants::SECTION_HEIGHT * common::constants::CHUNK_DEPTH
staticconstexpr

The documentation for this class was generated from the following file: