Class Extensions
Namespace: CmlLib.Core.Version
Assembly: CmlLib.Core.dll
public static class Extensions
Inheritance
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
ConcatInheritedJvmArguments(IVersion, int)
public static IEnumerable<MArgument> ConcatInheritedJvmArguments(this IVersion self, int maxDepth = 10)
Parameters
self IVersion
maxDepth int
Returns
EnumerateFromParent(IVersion, int)
public static IEnumerable<IVersion> EnumerateFromParent(this IVersion version, int maxDepth)
Parameters
version IVersion
maxDepth int
Returns
EnumerateToParent(IVersion)
public static IEnumerable<IVersion> EnumerateToParent(this IVersion version)
Parameters
version IVersion
Returns
GetInheritedProperty<T>(IVersion, Func<IVersion, T>)
public static T? GetInheritedProperty<T>(this IVersion self, Func<IVersion, T> prop)
Parameters
self IVersion
Returns
T?
Type Parameters
T
GetVersionType(IVersion)
public static MVersionType GetVersionType(this IVersion version)
Parameters
version IVersion
Returns
ToMutableVersion(IVersion)
public static MinecraftVersion ToMutableVersion(this IVersion self)
Parameters
self IVersion