|
| | LevelChunk (int height) |
| | Creates a new LevelChunk with preallocated chunk section array for the given height.
|
| | LevelChunk (int height, const coords::ChunkCoordinates &coords, ChunkContainer *container=nullptr) |
| | Creates a new LevelChunk under given parent container, with given coordinates and height.
|
| ChunkType | type () override |
| int | getChunkHeight () const override |
| | Gets the height of the chunk in Sections, can be used for getting section count.
|
| bool | hasSection (const coords::SectionCoordinates §ionY) const |
| | Checks if a section at the given section relative y level exists (NOT BLOCK Y).
|
| section::Section * | getSectionCreate (const coords::SectionCoordinates §ionY) override |
| | Gets/Creates a section at the given section relative y level (NOT BLOCK Y).
|
| section::Section * | getSection (const coords::SectionCoordinates §ionY) const override |
| | Creates a section at the given section relative y level (NOT BLOCK Y).
|
| void | calculateHeightmap () override |
| void | calculateHeightmapAtColumn (int localX, int localZ, int startHeight) override |
| const block::instance::BlockInstance & | getBlock (const int localX, const int blockY, const int localZ) const override |
| void | setBlock (block::instance::BlockInstance &&block, int localX, int y, int localZ) override |
| | Sets a block at the given X, Y, and Z coordinates.
|
| void | setBlockRaw (block::instance::BlockInstance &&block, int localX, int y, int localZ) override |
| | Sets a block at the given X, Y, and Z coordinates.
|
| int | getSectionCount () const override |
| | Chunk () |
| std::string | toString () const override |
| | Chunk (const coords::ChunkCoordinates &coords, ChunkContainer *container=nullptr) |
| | ~Chunk () override |
| int | getChunkBlockHeight () const |
| | Gets the height of the chunk in Blocks.
|
| virtual section::Section * | getSectionFromBlockY (const signed_size_t &blockY) const |
| virtual section::Section * | getSectionFromBlockYCreate (const signed_size_t &blockY) |
| virtual const int16_t * | getHeightmap () const |
| virtual int16_t | getHeightAt (int localX, int localZ) const |
| virtual void | setHeightAt (int16_t height, int localX, int localZ) |
| virtual const block::instance::BlockInstance & | getBlockAtHeight (int localX, int localZ) const |
| virtual void | setBlockAtHeight (block::instance::BlockInstance &&block, int localX, int localZ) |
| bool | hasCoords () const |
| const std::optional< coords::ChunkCoordinates > & | getCoords () const |
| void | setCoords (const std::optional< coords::ChunkCoordinates > &coords) |
| void | invalidateCoords () |
| void | attach (ChunkContainer *container) |
| void | attach (ChunkContainer *container, const coords::ChunkCoordinates &coords) |
| void | detach (bool shouldInvalidateCoords) |
| bool | isInContainer () const |
| ChunkContainer * | getContainer () const |
| virtual void | postProcess () |
| constexpr | StringSerializable ()=default |
| virtual constexpr | ~StringSerializable ()=default |
| virtual | ~ReflectiveProperties ()=default |
| virtual std::unique_ptr< AbstractProperty > | getProperty (const std::string &name) |
| template<typename T> |
| std::unique_ptr< TemplatedProperty< T > > | getProperty (const std::string &name) |
| template<typename T> |
| std::unique_ptr< TemplatedProperty< T > > | getPropertyOr (const std::string &name, T value) |
| constexpr | IHasDerivedTypes ()=default |
| virtual constexpr | ~IHasDerivedTypes ()=default |
| bool constexpr | instanceOf (EType type) |