com.mojang.realmsclient.client

public class FileUpload

implements AutoCloseable

fyp
com.mojang.realmsclient.client.FileUpload
net.minecraft.class_4337
net.minecraft.client.realms.FileUpload

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
a
LOGGER
field_19550
LOGGER
private static final int
b
MAX_RETRIES
field_32056
MAX_ATTEMPTS
private static final String
c
UPLOAD_PATH
field_32057
UPLOAD_ENDPOINT
private final File
d
file
field_19551
file
private final long
e
realmId
field_19552
worldId
private final int
f
slotId
field_19553
slotId
private final UploadInfo
g
uploadInfo
field_19554
uploadInfo
private final String
h
sessionId
field_19555
sessionId
private final String
i
username
field_19556
username
private final String
j
clientVersion
field_19557
clientVersion
private final String
k
worldVersion
field_49104
worldVersion
private final UploadStatus
l
uploadStatus
field_19558
uploadStatus
private final HttpClient
m
client
field_64190
httpClient

Constructor summary

ModifierConstructor
public (File file, long worldId, int slotId, UploadInfo uploadInfo, User session, String clientVersion, String worldVersion, UploadStatus uploadStatus)

Method summary

Modifier and TypeMethod
public void
close()
close()
public CompletableFuture<UploadResult>
a()
startUpload()
method_76241()
upload()
private CompletableFuture<UploadResult>
a(int arg0, long arg1)
requestUpload(int arg0, long arg1)
method_20971(int arg0, long arg1)
requestUpload(int currentAttempt, long size)
private static HttpRequest$BodyPublisher
a(Supplier<InputStream> arg0, long arg1)
inputStreamPublisherWithSize(Supplier<InputStream> arg0, long arg1)
method_76243(Supplier<InputStream> arg0, long arg1)
getPublisher(Supplier<InputStream> inputSupplier, long size)
private String
b()
uploadCookie()
method_76244()
getCookie()
private UploadResult
a(HttpResponse<String> arg0)
handleResponse(HttpResponse<String> arg0)
method_20975(HttpResponse<String> arg0)
handleResponse(HttpResponse<String> response)
private boolean
a(long arg0, int arg1)
shouldRetry(long arg0, int arg1)
method_20972(long arg0, int arg1)
shouldRetry(long retryDelaySeconds, int currentAttempt)
private long
b(HttpResponse<?> arg0)
getRetryDelaySeconds(HttpResponse<?> arg0)
method_20974(HttpResponse<?> arg0)
getRetryDelaySeconds(HttpResponse<?> response)