mirror of
https://github.com/ViaVersion/ViaFabricPlus.git
synced 2024-11-26 12:35:54 +01:00
added some util functions
This commit is contained in:
parent
d67ee42b27
commit
09992023c8
@ -36,6 +36,13 @@ public class ProtocolRange {
|
||||
return true;
|
||||
}
|
||||
|
||||
public ProtocolRange[] inverse() {
|
||||
return new ProtocolRange[] {
|
||||
ProtocolRange.andNewer(lowerBound),
|
||||
ProtocolRange.andOlder(upperBound)
|
||||
};
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
if (lowerBound == null) return upperBound.getName() + "+";
|
||||
|
@ -49,4 +49,8 @@ public class ProtocolSyncBooleanValue extends AbstractValue<Boolean> {
|
||||
public void setSyncWithProtocol(boolean syncWithProtocol) {
|
||||
this.syncWithProtocol = syncWithProtocol;
|
||||
}
|
||||
|
||||
public ProtocolRange getProtocolRange() {
|
||||
return protocolRange;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user