Java Code Examples for us.myles.ViaVersion.api.protocol.ProtocolRegistry#getSupportedVersions()

The following examples show how to use us.myles.ViaVersion.api.protocol.ProtocolRegistry#getSupportedVersions() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: VRViaAPI.java    From ViaFabric with MIT License 5 votes vote down vote up
@Override
public SortedSet<Integer> getSupportedVersions() {
    SortedSet<Integer> outputSet = new TreeSet<>(ProtocolRegistry.getSupportedVersions());
    outputSet.removeAll(Via.getPlatform().getConf().getBlockedProtocols());

    return outputSet;
}
 
Example 2
Source File: BukkitViaAPI.java    From ViaVersion with MIT License 5 votes vote down vote up
@Override
public SortedSet<Integer> getSupportedVersions() {
    SortedSet<Integer> outputSet = new TreeSet<>(ProtocolRegistry.getSupportedVersions());
    outputSet.removeAll(Via.getPlatform().getConf().getBlockedProtocols());

    return outputSet;
}
 
Example 3
Source File: BungeeViaAPI.java    From ViaVersion with MIT License 5 votes vote down vote up
@Override
public SortedSet<Integer> getSupportedVersions() {
    SortedSet<Integer> outputSet = new TreeSet<>(ProtocolRegistry.getSupportedVersions());
    outputSet.removeAll(Via.getPlatform().getConf().getBlockedProtocols());

    return outputSet;
}
 
Example 4
Source File: SpongeViaAPI.java    From ViaVersion with MIT License 5 votes vote down vote up
@Override
public SortedSet<Integer> getSupportedVersions() {
    SortedSet<Integer> outputSet = new TreeSet<>(ProtocolRegistry.getSupportedVersions());
    outputSet.removeAll(Via.getPlatform().getConf().getBlockedProtocols());

    return outputSet;
}
 
Example 5
Source File: VelocityViaAPI.java    From ViaVersion with MIT License 5 votes vote down vote up
@Override
public SortedSet<Integer> getSupportedVersions() {
    SortedSet<Integer> outputSet = new TreeSet<>(ProtocolRegistry.getSupportedVersions());
    outputSet.removeAll(Via.getPlatform().getConf().getBlockedProtocols());

    return outputSet;
}