public interface ConnectionRequestBuilder
Player.createConnectionRequest(RegisteredServer).| Modifier and Type | Interface and Description |
|---|---|
static interface |
ConnectionRequestBuilder.Result
Represents the result of a connection request.
|
static class |
ConnectionRequestBuilder.Status
Represents the status of a connection request initiated by a
ConnectionRequestBuilder. |
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<ConnectionRequestBuilder.Result> |
connect()
Initiates the connection to the remote server and emits a result on the
CompletableFuture after the user has logged on. |
CompletableFuture<Boolean> |
connectWithIndication()
Initiates the connection to the remote server and emits a result on the
CompletableFuture after the user has logged on. |
void |
fireAndForget()
Initiates the connection to the remote server without waiting for a result.
|
RegisteredServer |
getServer()
Returns the server that this connection request represents.
|
RegisteredServer getServer()
CompletableFuture<ConnectionRequestBuilder.Result> connect()
CompletableFuture after the user has logged on. No messages will be communicated to the
client: the user is responsible for all error handling.CompletableFuture representing the status of this connectionCompletableFuture<Boolean> connectWithIndication()
CompletableFuture after the user has logged on. Velocity's own built-in handling will be used
to provide errors to the client.CompletableFuture representing the status of this connectionvoid fireAndForget()