public class JavaRealmsService extends RealmsService
host, httpClient| Constructor and Description |
|---|
JavaRealmsService(net.lenni0451.commons.httpclient.HttpClient httpClient,
java.lang.String gameVersion,
Holder<MinecraftToken> token,
Holder<MinecraftProfile> profile) |
| Modifier and Type | Method and Description |
|---|---|
void |
acceptTos() |
java.util.concurrent.CompletableFuture<java.lang.Void> |
acceptTosAsync() |
void |
acceptTosUnchecked() |
protected <T extends net.lenni0451.commons.httpclient.requests.HttpRequest> |
authorizeRequest(T httpRequest) |
RealmsJoinInformation |
joinWorld(RealmsServer server) |
getWorlds, getWorldsAsync, getWorldsUnchecked, isCompatible, isCompatibleAsync, isCompatibleUnchecked, joinWorldAsync, joinWorldUncheckedpublic JavaRealmsService(net.lenni0451.commons.httpclient.HttpClient httpClient,
java.lang.String gameVersion,
Holder<MinecraftToken> token,
Holder<MinecraftProfile> profile)
public RealmsJoinInformation joinWorld(RealmsServer server) throws java.io.IOException
joinWorld in class RealmsServicejava.io.IOExceptionpublic void acceptTos()
throws java.io.IOException
java.io.IOExceptionpublic void acceptTosUnchecked()
public java.util.concurrent.CompletableFuture<java.lang.Void> acceptTosAsync()
protected <T extends net.lenni0451.commons.httpclient.requests.HttpRequest> T authorizeRequest(T httpRequest)
throws java.io.IOException
authorizeRequest in class RealmsServicejava.io.IOException