Table of Contents

Class Extensions

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

public static class Extensions

Inheritance

objectExtensions

Inherited Members

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

Methods

ConcatInheritedCollection<T>(IVersion, Func<IVersion, IEnumerable<T>>, int)

public static IEnumerable<T> ConcatInheritedCollection<T>(this IVersion self, Func<IVersion, IEnumerable<T>> prop, int maxDepth = 10)

Parameters

self IVersion

prop Func<IVersion, IEnumerable<T>>

maxDepth int

Returns

IEnumerable<T>

Type Parameters

T

ConcatInheritedGameArguments(IVersion, int)

public static IEnumerable<MArgument> ConcatInheritedGameArguments(this IVersion self, int maxDepth = 10)

Parameters

self IVersion

maxDepth int

Returns

IEnumerable<MArgument>

ConcatInheritedJvmArguments(IVersion, int)

public static IEnumerable<MArgument> ConcatInheritedJvmArguments(this IVersion self, int maxDepth = 10)

Parameters

self IVersion

maxDepth int

Returns

IEnumerable<MArgument>

EnumerateFromParent(IVersion, int)

public static IEnumerable<IVersion> EnumerateFromParent(this IVersion version, int maxDepth)

Parameters

version IVersion

maxDepth int

Returns

IEnumerable<IVersion>

EnumerateToParent(IVersion)

public static IEnumerable<IVersion> EnumerateToParent(this IVersion version)

Parameters

version IVersion

Returns

IEnumerable<IVersion>

GetInheritedProperty<T>(IVersion, Func<IVersion, T>)

public static T? GetInheritedProperty<T>(this IVersion self, Func<IVersion, T> prop)

Parameters

self IVersion

prop Func<IVersion, T>

Returns

T?

Type Parameters

T

GetVersionType(IVersion)

public static MVersionType GetVersionType(this IVersion version)

Parameters

version IVersion

Returns

MVersionType

ToMutableVersion(IVersion)

public static MinecraftVersion ToMutableVersion(this IVersion self)

Parameters

self IVersion

Returns

MinecraftVersion