readValue method

  1. @override
void readValue(
  1. ByteLayer data
)
override

Implementation

@override
void readValue(ByteLayer data) {
  value.clear();

  //NBTAccountant.visitTag();
  //NBTAccountant.printRead(this);

  while (true) {
    Tag tag = Tag.readNamedTag(data);
    if (tag.getType() == 0) {
      //NBTAccountant.leaveTag(this);
      return;
    }

    tag.setParentTagType(TagType.Compound);
    put(tag.getKey(), tag);
/*
    if (tag.getTagType() != TagType.Compound &&
        tag.getTagType() != TagType.List) {
      NBTAccountant.visitTag();
      NBTAccountant.printRead(tag);
      NBTAccountant.leaveTag(tag);
    }*/
  }
}