NBT
A modern NBT library for Java featuring both an event based and a tree based API.
Table of Contents
Contacts
License
Copyright (C) 2016 Johannes "Akkarin" Donath and other copyright owners as documented in the project's IP log.
Usage
<dependency>
<groupId>io.github.lordakkarin</groupId>
<artifactId>nbt</artifactId>
<version>1.1.0</version>
</dependency>
TagVisitor visitor = new MyVisitor();
ValidationVisitor validationVisitor = new ValidationVisitor(visitor);
TagReader reader = new TagReader(inputStream);
reader.accept(validationVisitor);
TreeVisitor visitor = new TreeVisitor();
ValidationVisitor validationVisitor = new ValidationVisitor(visitor);
TagReader reader = new TagReader(inputStream);
reader.accept(validationVisitor);
CompoundTag tag = reader.getRoot();
System.out.println(tag.getString("test"));
tag.setString("test", "foobar");
TagWriter writer = new TagWriter();
tag.accept(writer);
writer.write(outputStream);
Downloads
Released versions of the library can be found on GitHub.
Issues
You encountered problems with the library or have a suggestion? Create an issue!
- Make sure your issue has not been fixed in a newer version (check the list of closed issues
- Create a new issue from the issues page
- Enter your issue's title (something that summarizes your issue) and create a detailed description containing:
- What is the expected result?
- What problem occurs?
- How to reproduce the problem?
- Crash Log (Please use a Pastebin service)
- Click "Submit" and wait for further instructions
Building
- Clone this repository via
git clone https://github.com/dotStart/NBT.git
or download a zip - Build the modification by running
mvn clean install
- The resulting jars can be found in their respective
target
directories as well as your local maven repository
Contributing
Before you add any major changes to the library you may want to discuss them with us (see Contact) as we may choose to reject your changes for various reasons. All contributions are applied via Pull-Requests. Patches will not be accepted. Also be aware that all of your contributions are made available under the terms of the Apache License 2.0. Please read the Contribution Guidelines for more information.