summaryrefslogtreecommitdiffstats
path: root/src/MinedMap.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/MinedMap.cpp')
-rw-r--r--src/MinedMap.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/MinedMap.cpp b/src/MinedMap.cpp
index 306837d..97074b2 100644
--- a/src/MinedMap.cpp
+++ b/src/MinedMap.cpp
@@ -40,5 +40,11 @@ int main(int argc, char *argv[]) {
World::Region region(argv[1]);
+ const World::Chunk &chunk = *region(0, 0);
+
+ for (auto &entry : std::dynamic_pointer_cast<const NBT::CompoundTag>(chunk->get("Level"))->getValues()) {
+ std::cout << entry.first << " " << entry.second->getType() << std::endl;
+ }
+
return 0;
}