simple-anvil

Crates.iosimple-anvil
lib.rssimple-anvil
version0.3.3
sourcesrc
created_at2022-05-09 21:01:46.712329
updated_at2022-06-19 23:33:18.660931
descriptionA simple anvil file parser intended for use with Minecraft related applications.
homepage
repositoryhttps://github.com/nuhtan/simple-anvil
max_upload_size
id583623
size25,798
Nathaniel Richardson (nuhtan)

documentation

README

Simple Anvil

A very barebones Anvil file parser. This is intended to be used for Minecraft related applictions. There is currently only functionality for reading the content from files.

The sole purpose of this library is to get block data. The basic strategy is to read a region file, get a specific chunk from the region, and then get a specific block from a chunk.

Example Usage:

use simple_anvil::region::Region;

fn main() {
    let region = Region::from_file(String::from("r.0.0.mca"));
    let chunk = region.get_chunk(0, 1);
    let block = chunk.get_block(5, -20, 10);
    
    println!("Found: {}", block.name());
}
Commit count: 39

cargo fmt