internal WorldManager(DirectoryDataNode worldDirectory, DataVersion version) { Node = worldDirectory; Version = version; RegionFiles = Node.Get("region").Expanded().Nodes.Cast <RegionFileDataNode>().ToList(); }
internal static WorldManager FromWorldDir(DirectoryDataNode worldDirectory) { var versionTag = worldDirectory.Get("level.dat") .Get("Data") .Get <TagCompoundDataNode>("Version"); DataVersion v = versionTag is null ? (default) : (DataVersion)versionTag?.GetInt("Id");