public abstract class RealmsService
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
host |
protected net.lenni0451.commons.httpclient.HttpClient |
httpClient |
| Constructor and Description |
|---|
RealmsService(net.lenni0451.commons.httpclient.HttpClient httpClient,
java.lang.String host) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract <T extends net.lenni0451.commons.httpclient.requests.HttpRequest> |
authorizeRequest(T httpRequest) |
java.util.List<RealmsServer> |
getWorlds() |
java.util.concurrent.CompletableFuture<java.util.List<RealmsServer>> |
getWorldsAsync() |
java.util.List<RealmsServer> |
getWorldsUnchecked() |
boolean |
isCompatible() |
java.util.concurrent.CompletableFuture<java.lang.Boolean> |
isCompatibleAsync() |
boolean |
isCompatibleUnchecked() |
abstract RealmsJoinInformation |
joinWorld(RealmsServer server) |
java.util.concurrent.CompletableFuture<RealmsJoinInformation> |
joinWorldAsync(RealmsServer server) |
RealmsJoinInformation |
joinWorldUnchecked(RealmsServer server) |
protected final net.lenni0451.commons.httpclient.HttpClient httpClient
protected final java.lang.String host
public RealmsService(net.lenni0451.commons.httpclient.HttpClient httpClient,
java.lang.String host)
public boolean isCompatible()
throws java.io.IOException
java.io.IOExceptionpublic boolean isCompatibleUnchecked()
public java.util.concurrent.CompletableFuture<java.lang.Boolean> isCompatibleAsync()
public java.util.List<RealmsServer> getWorlds() throws java.io.IOException
java.io.IOExceptionpublic java.util.List<RealmsServer> getWorldsUnchecked()
public java.util.concurrent.CompletableFuture<java.util.List<RealmsServer>> getWorldsAsync()
public abstract RealmsJoinInformation joinWorld(RealmsServer server) throws java.io.IOException
java.io.IOExceptionpublic RealmsJoinInformation joinWorldUnchecked(RealmsServer server)
public java.util.concurrent.CompletableFuture<RealmsJoinInformation> joinWorldAsync(RealmsServer server)
protected abstract <T extends net.lenni0451.commons.httpclient.requests.HttpRequest> T authorizeRequest(T httpRequest)
throws java.io.IOException
java.io.IOException