readValue method
- 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);
}*/
}
}