mirror of
https://github.com/Nan1t/NanoLimbo.git
synced 2025-07-12 20:50: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;
|
||||
}
|
||||
|
||||
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() {
|
||||
return V1_9;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user