[][src]Crate anvil_region

Region file format storage for chunks.

More information about format can be found https://wiki.vg/Region_Files.

Example

use anvil_region::AnvilChunkProvider;

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

let chunk_compound_tag = chunk_provider.load_chunk(4, 2).unwrap();
let level_tag = chunk_compound_tag.get_compound_tag("Level").unwrap();

assert_eq!(level_tag.get_i32("xPos").unwrap(), 4);
assert_eq!(level_tag.get_i32("zPos").unwrap(), 2);

Structs

AnvilChunkProvider

Enums

ChunkLoadError

Possible errors while loading the chunk.