Merge remote-tracking branch 'origin/master' into feature/extensions-gradle

This commit is contained in:
RednedEpic 2022-03-19 20:48:14 -05:00
commit 02cda38259
21 changed files with 284 additions and 131 deletions

View file

@ -26,6 +26,7 @@
package org.geysermc.api.connection;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.checkerframework.common.value.qual.IntRange;
import java.util.UUID;
@ -55,5 +56,13 @@ public interface Connection {
*/
String xuid();
/**
* Transfer the connection to a server. A Bedrock player can successfully transfer to the same server they are
* currently playing on.
*
* @param address The address of the server
* @param port The port of the server
* @return true if the transfer was a success
*/
boolean transfer(@NonNull String address, @IntRange(from = 0, to = 65535) int port);
}