mirror of
https://github.com/Nan1t/NanoLimbo.git
synced 2026-02-11 03:16:14 +01:00
New helpers method for Version enum
This commit is contained in:
@@ -64,6 +64,22 @@ public enum Version {
|
|||||||
return prev;
|
return prev;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public boolean more(Version another) {
|
||||||
|
return this.protocolNumber > another.protocolNumber;
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean moreOrEqual(Version another) {
|
||||||
|
return this.protocolNumber >= another.protocolNumber;
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean less(Version another) {
|
||||||
|
return this.protocolNumber < another.protocolNumber;
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean lessOrEqual(Version another) {
|
||||||
|
return this.protocolNumber <= another.protocolNumber;
|
||||||
|
}
|
||||||
|
|
||||||
public static Version getMin() {
|
public static Version getMin() {
|
||||||
return V1_9;
|
return V1_9;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user