} else if(nbt instanceof NBTTagCompound) {
Map internal = ((NBTTagCompound)nbt).tagMap;
HashMap<Object, Object> content = new HashMap<Object, Object>();
HashMap<Integer, Object> keys = new HashMap<Integer, Object>();
int i = 1;
for(Object object:internal.entrySet()) {
Entry e = (Entry)object;
if(e.getValue() instanceof NBTBase) {
content.put(e.getKey(), getNBTBaseAsMap((NBTBase)e.getValue()));
keys.put(i, e.getKey());
}