mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/PCK-Studio.git
synced 2026-05-23 10:45:08 +00:00
17 lines
492 B
C#
17 lines
492 B
C#
using System;
|
|
|
|
namespace JavaResourcePackConverter
|
|
{
|
|
class VersionRange(Version min, Version max) : IMinecraftJavaVersion
|
|
{
|
|
private readonly Version _min = min;
|
|
private readonly Version _max = max;
|
|
|
|
public VersionRange(string min, string max) : this(new Version(min), new Version(max)) { }
|
|
|
|
public bool Equals(Version other) => _min <= other && other <= _max;
|
|
|
|
public string ToString(string seperator) => $"{_min}{seperator}{_max}";
|
|
}
|
|
}
|