A nbt api for scala.