Class MinecraftClient
java.lang.Object
com.mojang.authlib.minecraft.client.MinecraftClient
Client to use when communicating with Minecraft service API.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Stringstatic final intprivate static final org.slf4j.Loggerprivate final ObjectMapperprivate final Proxystatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate HttpURLConnectioncreateUrlConnection(URL url) <T> T<T> T<T> Tprivate HttpURLConnectionpostInternal(URL url, byte[] postAsBytes) private <T> TreadInputStream(URL url, Class<T> clazz, HttpURLConnection connection) static MinecraftClientunauthenticated(Proxy proxy)
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
CONNECT_TIMEOUT_MS
public static final int CONNECT_TIMEOUT_MS- See Also:
-
READ_TIMEOUT_MS
public static final int READ_TIMEOUT_MS- See Also:
-
accessToken
-
proxy
-
objectMapper
-
-
Constructor Details
-
MinecraftClient
-
-
Method Details
-
unauthenticated
-
get
-
post
-
post
-
readInputStream
-
postInternal
-
createUrlConnection
-