Class MLibrary
Namespace: CmlLib.Core.Version
Assembly: CmlLib.Core.dll
public record MLibrary : IEquatable<MLibrary>
Inheritance
Implements
Inherited Members
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
Constructors
MLibrary(string)
public MLibrary(string name)
Parameters
name string
Properties
Artifact
public MFileMetadata? Artifact { get; init; }
Property Value
Classifiers
public IReadOnlyDictionary<string, MFileMetadata>? Classifiers { get; init; }
Property Value
IReadOnlyDictionary<string, MFileMetadata>?
ExtractExcludes
public IReadOnlyCollection<string> ExtractExcludes { get; init; }
Property Value
IsClientRequired
public bool IsClientRequired { get; init; }
Property Value
IsServerRequired
public bool IsServerRequired { get; init; }
Property Value
Name
public string Name { get; }
Property Value
Natives
public IReadOnlyDictionary<string, string>? Natives { get; init; }
Property Value
IReadOnlyDictionary<string, string>?
Rules
public IReadOnlyCollection<LauncherRule> Rules { get; init; }
Property Value
IReadOnlyCollection<LauncherRule>
Methods
CheckIsRequired(string)
public bool CheckIsRequired(string side)
Parameters
side string
Returns
GetClassifierId(LauncherOSRule)
public string? GetClassifierId(LauncherOSRule os)
Parameters
Returns
GetLibraryPath()
public string GetLibraryPath()
Returns
GetNativeLibrary(LauncherOSRule)
public MFileMetadata? GetNativeLibrary(LauncherOSRule os)
Parameters
Returns
GetNativeLibraryPath(LauncherOSRule)
public string? GetNativeLibraryPath(LauncherOSRule os)