com.mojang.realmsclient.client

public class FileUpload

eqp
com.mojang.realmsclient.client.FileUpload
net.minecraft.class_4337
net.minecraft.client.realms.FileUpload
net.minecraft.src.C_3218_

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
a
LOGGER
field_19550
LOGGER
f_87057_
private static final int
b
MAX_RETRIES
field_32056
MAX_ATTEMPTS
f_167233_
private static final String
c
UPLOAD_PATH
field_32057
UPLOAD_ENDPOINT
f_167234_
private final File
d
file
field_19551
file
f_87058_
private final long
e
worldId
field_19552
worldId
f_87059_
private final int
f
slotId
field_19553
slotId
f_87060_
private final UploadInfo
g
uploadInfo
field_19554
uploadInfo
f_87061_
private final String
h
sessionId
field_19555
sessionId
f_87062_
private final String
i
username
field_19556
username
f_87063_
private final String
j
clientVersion
field_19557
clientVersion
f_87064_
private final UploadStatus
k
uploadStatus
field_19558
uploadStatus
f_87065_
private final AtomicBoolean
l
cancelled
field_19559
cancelled
f_87066_
private CompletableFuture<UploadResult>
m
uploadTask
field_19560
uploadTask
f_87067_
private final org.apache.http.client.config.RequestConfig
n
requestConfig
field_19561
requestConfig
f_87068_

Constructor summary

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

Method summary

Modifier and TypeMethod
public void
a(Consumer<eto> arg0)
upload(Consumer<UploadResult> arg0)
method_20973(Consumer<class_4429> arg0)
upload(Consumer<UploadResult> callback)
m_87084_(Consumer<C_3341_> arg0)
public void
a()
cancel()
method_20970()
cancel()
m_87078_()
private UploadResult
a(int arg0)
requestUpload(int arg0)
method_20971(int arg0)
requestUpload(int currentAttempt)
m_87079_(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)
m_87093_(org.apache.http.client.methods.HttpPost p_87095_, 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)
m_87091_(org.apache.http.client.methods.HttpPost arg0)
private void
a(org.apache.http.HttpResponse arg0, eto$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)
m_87088_(org.apache.http.HttpResponse p_87090_, C_3341_$C_3343_ arg1)
private boolean
a(long arg0, int arg1)
shouldRetry(long arg0, int arg1)
method_20972(long arg0, int arg1)
shouldRetry(long retryDelaySeconds, int currentAttempt)
m_87081_(long p_87083_, 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)
m_87097_(long p_87099_, 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)
m_87086_(org.apache.http.HttpResponse arg0)
public boolean
b()
isFinished()
method_20978()
isFinished()
m_87096_()