2023-01-25 21:41:08 +01:00
|
|
|
use std::path::PathBuf;
|
2023-01-25 19:08:23 +01:00
|
|
|
|
2023-01-25 21:41:08 +01:00
|
|
|
use anyhow::Result;
|
2023-01-25 19:08:23 +01:00
|
|
|
use clap::Parser;
|
|
|
|
|
|
|
|
#[derive(Debug, Parser)]
|
|
|
|
struct Args {
|
|
|
|
/// Filename to dump
|
|
|
|
file: PathBuf,
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() -> Result<()> {
|
|
|
|
let args = Args::parse();
|
|
|
|
|
2023-08-18 19:20:21 +02:00
|
|
|
minedmap_core::io::region::from_file(args.file.as_path())?.foreach_chunk(
|
2023-01-27 23:01:01 +01:00
|
|
|
|coords, value: fastnbt::Value| {
|
|
|
|
println!("Chunk {:?}: {:#x?}", coords, value);
|
2023-02-26 01:01:37 +01:00
|
|
|
Ok(())
|
2023-01-27 23:01:01 +01:00
|
|
|
},
|
|
|
|
)
|
2023-01-25 19:08:23 +01:00
|
|
|
}
|