Table of Contents

Class JsonVersion

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

public class JsonVersion : IVersion, IDisposable

Inheritance

objectJsonVersion

Implements

IVersion, IDisposable

Inherited Members

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()

Extension Methods

Extensions.ConcatInheritedCollection<T>(IVersion, Func<IVersion, IEnumerable<T>>, int), Extensions.ConcatInheritedGameArguments(IVersion, int), Extensions.ConcatInheritedJvmArguments(IVersion, int), Extensions.EnumerateFromParent(IVersion, int), Extensions.EnumerateToParent(IVersion), Extensions.GetInheritedProperty<T>(IVersion, Func<IVersion, T>), Extensions.GetVersionType(IVersion), Extensions.ToMutableVersion(IVersion)

Constructors

JsonVersion(JsonDocument, JsonVersionParserOptions)

public JsonVersion(JsonDocument jsonDocument, JsonVersionParserOptions options)

Parameters

jsonDocument JsonDocument

options JsonVersionParserOptions

Properties

AssetIndex

public AssetMetadata? AssetIndex { get; }

Property Value

AssetMetadata?

Client

public MFileMetadata? Client { get; }

Property Value

MFileMetadata?

Id

public string Id { get; }

Property Value

string

InheritsFrom

public string? InheritsFrom { get; }

Property Value

string?

Jar

public string? Jar { get; }

Property Value

string?

JavaVersion

public JavaVersion? JavaVersion { get; }

Property Value

JavaVersion?

Libraries

public IReadOnlyCollection<MLibrary> Libraries { get; }

Property Value

IReadOnlyCollection<MLibrary>

Logging

public MLogFileMetadata? Logging { get; }

Property Value

MLogFileMetadata?

MainClass

public string? MainClass { get; }

Property Value

string?

MainJarId

public string MainJarId { get; }

Property Value

string

MinecraftArguments

public string? MinecraftArguments { get; }

Property Value

string?

ParentVersion

public IVersion? ParentVersion { get; set; }

Property Value

IVersion?

ReleaseTime

public DateTimeOffset ReleaseTime { get; }

Property Value

DateTimeOffset

Type

public string? Type { get; }

Property Value

string?

Methods

Dispose()

public void Dispose()

GetGameArguments(bool)

public IReadOnlyCollection<MArgument> GetGameArguments(bool isBaseVersion)

Parameters

isBaseVersion bool

Returns

IReadOnlyCollection<MArgument>

GetJvmArguments(bool)

public IReadOnlyCollection<MArgument> GetJvmArguments(bool isBaseVersion)

Parameters

isBaseVersion bool

Returns

IReadOnlyCollection<MArgument>

GetProperty(string)

public string? GetProperty(string key)

Parameters

key string

Returns

string?