MinecraftTabPatcher/MinecraftVersion.cs
/// <summary>
/// Returns all minecraft version from the version directory.
/// </summary>
/// <param name="path"></param>
/// <returns></returns>
Returns all minecraft version from the version directory.
Returns all minecraft version from the version directory .
public static IEnumerable<MinecraftVersion> GetVersions(string path)
        {
            foreach (var directory in Directory.EnumerateDirectories(path))
            {
                var version = new MinecraftVersion(directory);
                if (version.IsValid)
                {
                    yield return version;
                }
            }
        }
public static IEnumerable < MinecraftVersion > GetVersions ( string path ) { foreach ( var directory in Directory . EnumerateDirectories ( path ) ) { var version = new MinecraftVersion ( directory ) ; if ( version . IsValid ) { yield return version ; } } }
Returns all minecraft version from the version directory.
Returns all minecraft version from the version directory .
// Checks every sub directory for a minecraft version
None
path
string
None