Table of Contents

Class MLibrary

Namespace: CmlLib.Core.Version
Assembly: CmlLib.Core.dll

public record MLibrary : IEquatable<MLibrary>

Inheritance

objectMLibrary

Implements

IEquatable<MLibrary>

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

MFileMetadata?

Classifiers

public IReadOnlyDictionary<string, MFileMetadata>? Classifiers { get; init; }

Property Value

IReadOnlyDictionary<string, MFileMetadata>?

ExtractExcludes

public IReadOnlyCollection<string> ExtractExcludes { get; init; }

Property Value

IReadOnlyCollection<string>

IsClientRequired

public bool IsClientRequired { get; init; }

Property Value

bool

IsServerRequired

public bool IsServerRequired { get; init; }

Property Value

bool

Name

public string Name { get; }

Property Value

string

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

bool

GetClassifierId(LauncherOSRule)

public string? GetClassifierId(LauncherOSRule os)

Parameters

os LauncherOSRule

Returns

string?

GetLibraryPath()

public string GetLibraryPath()

Returns

string

GetNativeLibrary(LauncherOSRule)

public MFileMetadata? GetNativeLibrary(LauncherOSRule os)

Parameters

os LauncherOSRule

Returns

MFileMetadata?

GetNativeLibraryPath(LauncherOSRule)

public string? GetNativeLibraryPath(LauncherOSRule os)

Parameters

os LauncherOSRule

Returns

string?