Updated NBT stream API (markdown)

Jesse Boyd 2017-02-14 08:06:26 +11:00
parent 6b99f9528d
commit be18bc7104

@ -1,6 +1,6 @@
With FAWE you can stream a schematic, or any NBT stream without having to store the whole thing into memory.
With FAWE you can stream a schematic, or any NBT without having to store the whole thing into memory.
- You have to do this if a file is too large to fit in memory
- Or if you just want to obtain some information from the stream
- If you just want to obtain some information from the stream
```Java
// Let's stream some info from a schematic file without having to load the whole thing into memory
@ -42,4 +42,6 @@ streamer.addReader("Schematic.Blocks.?", new NBTStreamer.NBTStreamReader<Integer
streamer.readFully();
System.out.println("Dimensions are: " + dimensions);
```
See: https://github.com/boy0001/FastAsyncWorldedit/blob/master/core/src/main/java/com/boydti/fawe/jnbt/SchematicStreamer.java
Classes using this API:
- [The SchematicWriter directly writes compressed schematic data](https://github.com/boy0001/FastAsyncWorldedit/blob/master/core/src/main/java/com/sk89q/worldedit/extent/clipboard/io/SchematicWriter.java)
- [The SchematicStreamer reads a schematic directly into a clipboard](https://github.com/boy0001/FastAsyncWorldedit/blob/master/core/src/main/java/com/boydti/fawe/jnbt/SchematicStreamer.java)