Move JavaResourcePackConverter to its own cs proj

This commit is contained in:
miku-666
2026-02-07 09:30:27 +01:00
parent 4232f258c3
commit 8acec4cdde
23 changed files with 188 additions and 56 deletions

View File

@@ -0,0 +1,16 @@
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}";
}
}