A library for dealing with Minecraft NBT and SNBT.
Go to file
Glavo 04c0131935
Fix resource leaks
(cherry picked from commit 537221a0cad28cc0df49a9d90a15e241b297d37f)
2023-03-03 14:01:05 +01:00
.github/workflows Add CI action. 2019-08-27 23:53:25 -07:00
src/main/java/com/github/steveice10/opennbt Fix resource leaks 2023-03-03 14:01:05 +01:00
.gitignore General cleanup, fixes, and re-versioning. 2015-07-20 11:13:51 -07:00
LICENSE.txt 2.1.1, remove Guava dependency 2023-03-03 13:51:13 +01:00
pom.xml Fix resource leaks 2023-03-03 14:01:05 +01:00
README.md Various optimizations and improvements 2021-03-14 18:21:42 +01:00

OpenNBT

OpenNBT is a library for reading and writing NBT files, with some extra custom tags added to allow the storage of more data types.

This fork contains various improvements and changes specifically made for use in Via plugins, including but not limited to the following list:

  • Most notably, move the tag name out the of tags themselves
  • 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

Building the Source

OpenNBT uses Maven to manage dependencies. Simply run 'mvn clean install' in the source's directory.

License

OpenNBT is licensed under the MIT license.