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