}
}
}
Map<String, Tag> levelTags = new HashMap<String, Tag>();
levelTags.put("Blocks", new ByteArrayTag("Blocks", tileData));
levelTags.put("Data", new ByteArrayTag("Data", metaData));
levelTags.put("SkyLight", new ByteArrayTag("SkyLight", skyLightData));
levelTags.put("BlockLight", new ByteArrayTag("BlockLight", blockLightData));
// TODO: Heightmap, entities, tileentities, lastupdate
levelTags.put("HeightMap", new ByteArrayTag("HeightMap", heightMapData));
levelTags.put("Entities", chunkEntitiesToTag(chunk));
levelTags.put("TileEntities", chunkTileEntitiesToTag(chunk));
levelTags.put("LastUpdate", new LongTag("LastUpdate", 0));
levelTags.put("xPos", new IntTag("xPos", chunk.getX()));