compound.setByteArray("map", map);
compound.setTag("mapRegion", mapRegion.toCompound());
return compound;
}
public static CratePileMap fromCompound(NBTTagCompound compound) {
Region region = Region.fromCompound(compound.getCompoundTag("region"));
byte[] map = compound.getByteArray("map");
Region mapRegion = Region.fromCompound(compound.getCompoundTag("mapRegion"));
return new CratePileMap(region, map, mapRegion);
}