Basic Usage
Reading binary data:
InputStream input = // Get an input stream
CompoundTag tag = BinaryTags.readCompressed(input);
int intValue = tag.getInt("key");
String string = tag.getString("other_key");
Writing binary data:
CompoundTag tag = // Get a tag
OutputStream stream = // Create a stream
BinaryTags.writeCompressed(stream, tag);
SNBT parsing:
import net.forthecrown.nbt.string.Snbt;
String input = // Get an SNBT input
BinaryTag tag = Snbt.parse(input);
SNBT writing:
BinaryTag tag = // Get a tag
String output = Snbt.toString(tag);