Lodestone.Minecraft.Java  1.2.6
Loading...
Searching...
No Matches
McRegionChunk.h
Go to the documentation of this file.
1//
2// Created by DexrnZacAttack on 11/8/25 using zPc-i2.
3//
4#ifndef LODESTONE_MCREGIONCHUNK_H
5#define LODESTONE_MCREGIONCHUNK_H
7
10 public:
11 explicit McRegionChunk(const int64_t lastUpdate = 0)
12 : LevelChunk(128), m_lastUpdate(lastUpdate) {}
13
15 const int64_t lastUpdate = 0, level::chunk::ChunkContainer *container = nullptr)
16 : LevelChunk(128, coords, container), m_lastUpdate(lastUpdate) {}
17
18 std::string toString() const override {
19 if (this->m_coords.has_value())
20 return std::format("McRegionChunk[coords={},lastUpdate={}]",
21 m_coords->toString(), m_lastUpdate);
22
23 return std::format("McRegionChunk");
24 };
25
26 private:
27 int64_t m_lastUpdate = 0;
28 };
29} // namespace lodestone::minecraft::java::mcregion::chunk
30
31#endif // LODESTONE_MCREGIONCHUNK_H
std::optional< coords::ChunkCoordinates > m_coords
McRegionChunk(const int64_t lastUpdate=0)
Definition McRegionChunk.h:11
std::string toString() const override
Definition McRegionChunk.h:18
McRegionChunk(const level::coords::ChunkCoordinates &coords, const int64_t lastUpdate=0, level::chunk::ChunkContainer *container=nullptr)
Definition McRegionChunk.h:14
int64_t m_lastUpdate
Definition McRegionChunk.h:27
Definition McRegionChunkIo.cpp:22