mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2024-09-27 14:12:54 +02:00
Add back default getProtocolPath with int versions
This commit is contained in:
parent
c7baa27fd0
commit
e2a7e10312
@ -138,6 +138,11 @@ public interface ProtocolManager {
|
||||
*/
|
||||
@Nullable List<ProtocolPathEntry> getProtocolPath(ProtocolVersion clientVersion, ProtocolVersion serverVersion);
|
||||
|
||||
@Deprecated
|
||||
default @Nullable List<ProtocolPathEntry> getProtocolPath(int clientVersion, int serverVersion) {
|
||||
return getProtocolPath(ProtocolVersion.getProtocol(VersionType.RELEASE, clientVersion), ProtocolVersion.getProtocol(VersionType.RELEASE, serverVersion));
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a versioned packet transformer to transform and send packets from a given base version to any client version supported by Via.
|
||||
* The used packet types have to match the given protocol version.
|
||||
|
Loading…
Reference in New Issue
Block a user