mirror of
https://github.com/ViaVersion/ViaNBT.git
synced 2024-11-15 10:25:16 +01:00
A library for dealing with Minecraft NBT and SNBT.
63c109efde
- More general refactoring - Add SNBT serializer - Rebrand to ViaNBT, as the project has shifted greatly from the original Package rename will follow at a (much) later date when ViaVersion is ready for another major version bump |
||
---|---|---|
.github/workflows | ||
src/main/java/com/github/steveice10/opennbt | ||
.gitignore | ||
LICENSE.txt | ||
pom.xml | ||
README.md |
ViaNBT
ViaNBT is a library for dealing with NBT and SNBT.
This project is derived from an earlier version of OpenNBT and contains various fundamental improvements and changes to it, including:
- Most notably, move the tag name out the of tags themselves
SNBT
for string serialization- Add primitive getter methods to number types
- Don't wrap values given in Tag#setValue / Tag constructors
- Abstract NumberTag class for easier number handling
- Always read/write CompoundTags in NBTIO
- Don't use reflection when creating tag instances
- Directly use value in clone()
- Implement tag specific equals() methods
- Update to Java 8
This project also includes code from adventure used for SNBT serialization.
Dependency
Maven:
<repository>
<id>viaversion-repo</id>
<url>https://repo.viaversion.com</url>
</repository>
<dependency>
<groupId>com.viaversion</groupId>
<artifactId>nbt</artifactId>
<version>3.0.0</version>
</dependency>
Gradle:
repositories {
maven("https://repo.viaversion.com")
}
dependencies {
implementation("com.viaversion:nbt:3.0.0")
}
Building
Run mvn install
in the source's directory via Maven.
License
ViaNBT is licensed under the MIT license.