summaryrefslogtreecommitdiffstats
path: root/src/World/Chunk.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/World/Chunk.hpp')
-rw-r--r--src/World/Chunk.hpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/World/Chunk.hpp b/src/World/Chunk.hpp
index 7c485eb..3ed6cf4 100644
--- a/src/World/Chunk.hpp
+++ b/src/World/Chunk.hpp
@@ -29,6 +29,7 @@
#include "../UniqueCPtr.hpp"
#include "../NBT/CompoundTag.hpp"
+#include "../NBT/ListTag.hpp"
#include <cstdint>
#include <tuple>
@@ -44,8 +45,14 @@ public:
private:
static std::pair<UniqueCPtr<uint8_t[]>, size_t> inflateChunk(uint8_t *data, size_t len);
+ std::shared_ptr<const NBT::ListTag<NBT::CompoundTag>> sections;
+
public:
Chunk(uint8_t *buffer, size_t buflen);
+
+ const NBT::ListTag<NBT::CompoundTag> & getSections() const {
+ return *sections;
+ }
};
}