Update README.md
1 file changed
tree: 7e3b2763b371ea0103fff8b1f669d969ceccddd5
  1. .gitignore
  2. .travis.yml
  3. LICENSE
  4. README.md
  5. build.gradle
  6. gradle/wrapper/
  7. gradlew
  8. gradlew.bat
  9. settings.gradle
  10. src/
README.md

NBT Build Status

A java implementation of the NBT protocol, including a way to implement custom tags.


Creating Tags

Tags can be used by creating instances of the corresponding tag classes:

Tag classSuperclassID
ByteTagNumberTag1
ShortTagNumberTag2
IntTagNumberTag3
LongTagNumberTag
FloatTagNumberTag
DoubleTagNumberTag
ByteArrayTagArrayTag
IntArrayTagArrayTag
StringTagTag
ListTagTag
CompoundTagTag
ByteTag bt = new ByteTag("8bitRetroNumber", (byte) 1);
DoubleTag dt = new DoubleTag("64bitFloatingPointNumber", 1.234);

CompoundTag ct = new CompoundTag("compound");

ct.set(bt);
ct.set(dt);