com.mojang.realmsclient.client

public class FileUpload

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

Field summary

Modifier and TypeField
private static final org.apache.logging.log4j.Logger
a
LOGGER
field_19550
LOGGER
field_224883_a
private final File
b
file
field_19551
file
field_224884_b
private final long
c
worldId
field_19552
worldId
field_224885_c
private final int
d
slotId
field_19553
slotId
field_224886_d
private final UploadInfo
e
uploadInfo
field_19554
uploadInfo
field_224887_e
private final String
f
sessionId
field_19555
sessionId
field_224888_f
private final String
g
username
field_19556
username
field_224889_g
private final String
h
clientVersion
field_19557
clientVersion
field_224890_h
private final UploadStatus
i
uploadStatus
field_19558
uploadStatus
field_224891_i
private final AtomicBoolean
j
cancelled
field_19559
cancelled
field_224892_j
private CompletableFuture<UploadResult>
k
uploadTask
field_19560
uploadTask
field_224893_k
private final org.apache.http.client.config.RequestConfig
l
requestConfig
field_19561
requestConfig
field_224894_l

Constructor summary

ModifierConstructor
public (File file, long worldId, int slotId, UploadInfo uploadInfo, User arg4, String clientVersion, UploadStatus arg6)

Method summary

Modifier and TypeMethod
public void
a(Consumer<dio> arg0)
upload(Consumer<UploadResult> arg0)
method_20973(Consumer<class_4429> arg0)
upload(Consumer<UploadResult> callback)
func_224874_a(Consumer<UploadResult> arg0)
public void
a()
cancel()
method_20970()
cancel()
func_224878_a()
private UploadResult
a(int arg0)
requestUpload(int arg0)
method_20971(int arg0)
requestUpload(int currentAttempt)
func_224879_a(int arg0)
private void
a(org.apache.http.client.methods.HttpPost arg0, org.apache.http.impl.client.CloseableHttpClient arg1)
cleanup(org.apache.http.client.methods.HttpPost arg0, org.apache.http.impl.client.CloseableHttpClient arg1)
method_20977(org.apache.http.client.methods.HttpPost arg0, org.apache.http.impl.client.CloseableHttpClient arg1)
cleanup(org.apache.http.client.methods.HttpPost request, org.apache.http.impl.client.CloseableHttpClient client)
func_224877_a(org.apache.http.client.methods.HttpPost arg0, org.apache.http.impl.client.CloseableHttpClient arg1)
private void
a(org.apache.http.client.methods.HttpPost arg0)
setupRequest(org.apache.http.client.methods.HttpPost arg0)
method_20976(org.apache.http.client.methods.HttpPost arg0)
setupRequest(org.apache.http.client.methods.HttpPost request)
func_224872_a(org.apache.http.client.methods.HttpPost arg0)
private void
a(org.apache.http.HttpResponse arg0, dio$a arg1)
handleResponse(org.apache.http.HttpResponse arg0, UploadResult$Builder arg1)
method_20975(org.apache.http.HttpResponse arg0, class_4429$class_4430 arg1)
handleResponse(org.apache.http.HttpResponse response, UploadResult$Builder uploadResultBuilder)
func_224875_a(org.apache.http.HttpResponse arg0, UploadResult$Builder arg1)
private boolean
a(long arg0, int arg1)
shouldRetry(long arg0, int arg1)
method_20972(long arg0, int arg1)
shouldRetry(long retryDelaySeconds, int currentAttempt)
func_224882_a(long arg0, int arg1)
private UploadResult
b(long arg0, int arg1)
retryUploadAfter(long arg0, int arg1)
method_20979(long arg0, int arg1)
retryUploadAfter(long retryDelaySeconds, int currentAttempt)
func_224876_b(long arg0, int arg1)
private long
a(org.apache.http.HttpResponse arg0)
getRetryDelaySeconds(org.apache.http.HttpResponse arg0)
method_20974(org.apache.http.HttpResponse arg0)
getRetryDelaySeconds(org.apache.http.HttpResponse response)
func_224880_a(org.apache.http.HttpResponse arg0)
public boolean
b()
isFinished()
method_20978()
isFinished()
func_224881_b()