}
}
private void readClassFromTag(NBTTagCompound tag, TypeData data, ITypeInfo info)
{
ClassContainer tempType;
Object val;
for (String childName : (Collection<String>) tag.func_150296_c())
{
tempType = info.getTypeOfField(childName);
if (StorageManager.isTypeComplex(tempType))
{
NBTTagCompound compound = tag.getCompoundTag(childName);
TypeData tempData = DataStorageManager.getDataForType(tempType);
readClassFromTag(compound, tempData, info.getInfoForField(childName));
val = tempData;
}
else
{
val = readPrimitiveFromTag(tag, childName, tempType.getType());
}
data.putField(childName, val);
}
}