Class JsonVersion
Namespace: CmlLib.Core.Version
Assembly: CmlLib.Core.dll
public class JsonVersion : IVersion, IDisposable
Inheritance
Implements
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
Client
public MFileMetadata? Client { get; }
Property Value
Id
public string Id { get; }
Property Value
InheritsFrom
public string? InheritsFrom { get; }
Property Value
Jar
public string? Jar { get; }
Property Value
JavaVersion
public JavaVersion? JavaVersion { get; }
Property Value
Libraries
public IReadOnlyCollection<MLibrary> Libraries { get; }
Property Value
Logging
public MLogFileMetadata? Logging { get; }
Property Value
MainClass
public string? MainClass { get; }
Property Value
MainJarId
public string MainJarId { get; }
Property Value
MinecraftArguments
public string? MinecraftArguments { get; }
Property Value
ParentVersion
public IVersion? ParentVersion { get; set; }
Property Value
ReleaseTime
public DateTimeOffset ReleaseTime { get; }
Property Value
Type
public string? Type { get; }
Property Value
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