public static Dimension Load(TagCompound tag)
        {
            int       saveversion = tag.GetInt("saveversion");
            int       index       = tag.GetInt("index");
            string    modname     = tag.GetString("modname");
            string    areaname    = tag.GetString("areaname");
            Rectangle area        = tag.Get <Rectangle>("area");
            Dimension result      = new Dimension(index, modname, areaname, area);

            AlternateDimensionsWorld.DebugText("Loaded " + result);
            return(result);
        }
        public static TagCompound Save(Dimension dimension)
        {
            var tag = new TagCompound();

            tag.Set("saveversion", Dimension.saveversion);
            tag.Set("index", dimension.index);
            tag.Set("modname", dimension.modname);
            tag.Set("areaname", dimension.areaname);
            tag.Set("area", dimension.area);
            AlternateDimensionsWorld.DebugText($"Writing out {dimension}");
            return(tag);
        }