Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-12-28 09:00:09 +01:00
Add back default getProtocolPath with int versions
Dieser Commit ist enthalten in:
Ursprung
c7baa27fd0
Commit
e2a7e10312
@ -138,6 +138,11 @@ public interface ProtocolManager {
|
|||||||
*/
|
*/
|
||||||
@Nullable List<ProtocolPathEntry> getProtocolPath(ProtocolVersion clientVersion, ProtocolVersion serverVersion);
|
@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.
|
* 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.
|
* The used packet types have to match the given protocol version.
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren