Skip to content

sofianedjerbi/Linearify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Logo

Quickstart

Here is an example using FastNBT to print a whole chunk.

use fastnbt::Value;
use linearify::{self, Region};

fn main() {
    let mut region = linearify::open_linear("./r.0.0.linear").unwrap();
    let buf = region.chunks[0].clone().unwrap().raw_chunk;
    let val: Value = fastnbt::from_bytes(buf.as_slice()).unwrap();
    println!("{:?}", val);
}

About

Fast region file format manipulation.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages