mirror of
https://github.com/Nan1t/NanoLimbo.git
synced 2025-07-13 13:10:13 +02:00
New helpers method for Version enum
This commit is contained in:
parent
f490e00888
commit
9659b4500a
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user