anvil-region

crates.io Build Status codecov

Region file format storage for chunks

Usage

Add this to your Cargo.toml:

toml [dependencies] anvil-region = "0.2"

Example

```rust use anvil_region::AnvilChunkProvider;

let chunk_provider = AnvilChunkProvider::new("test/region");

let chunkcompoundtag = chunkprovider.loadchunk(4, 2).unwrap(); let leveltag = chunkcompoundtag.getcompound_tag("Level").unwrap();

asserteq!(leveltag.geti32("xPos").unwrap(), 4); asserteq!(leveltag.geti32("zPos").unwrap(), 2); ```