Class FileUpload

java.lang.Object
net.minecraft.client.realms.FileUpload

@Environment(CLIENT) public class FileUpload extends Object
Mappings:
Namespace Name
named net/minecraft/client/realms/FileUpload
intermediary net/minecraft/class_4337
official fhf
  • Field Details

    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      named LOGGER Lnet/minecraft/client/realms/FileUpload;LOGGER:Lorg/slf4j/Logger;
      intermediary field_19550 Lnet/minecraft/class_4337;field_19550:Lorg/slf4j/Logger;
      official a Lfhf;a:Lorg/slf4j/Logger;
    • MAX_ATTEMPTS

      private static final int MAX_ATTEMPTS
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named MAX_ATTEMPTS Lnet/minecraft/client/realms/FileUpload;MAX_ATTEMPTS:I
      intermediary field_32056 Lnet/minecraft/class_4337;field_32056:I
      official b Lfhf;b:I
    • UPLOAD_ENDPOINT

      private static final String UPLOAD_ENDPOINT
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named UPLOAD_ENDPOINT Lnet/minecraft/client/realms/FileUpload;UPLOAD_ENDPOINT:Ljava/lang/String;
      intermediary field_32057 Lnet/minecraft/class_4337;field_32057:Ljava/lang/String;
      official c Lfhf;c:Ljava/lang/String;
    • file

      private final File file
      Mappings:
      Namespace Name Mixin selector
      named file Lnet/minecraft/client/realms/FileUpload;file:Ljava/io/File;
      intermediary field_19551 Lnet/minecraft/class_4337;field_19551:Ljava/io/File;
      official d Lfhf;d:Ljava/io/File;
    • worldId

      private final long worldId
      Mappings:
      Namespace Name Mixin selector
      named worldId Lnet/minecraft/client/realms/FileUpload;worldId:J
      intermediary field_19552 Lnet/minecraft/class_4337;field_19552:J
      official e Lfhf;e:J
    • slotId

      private final int slotId
      Mappings:
      Namespace Name Mixin selector
      named slotId Lnet/minecraft/client/realms/FileUpload;slotId:I
      intermediary field_19553 Lnet/minecraft/class_4337;field_19553:I
      official f Lfhf;f:I
    • uploadInfo

      private final UploadInfo uploadInfo
      Mappings:
      Namespace Name Mixin selector
      named uploadInfo Lnet/minecraft/client/realms/FileUpload;uploadInfo:Lnet/minecraft/client/realms/dto/UploadInfo;
      intermediary field_19554 Lnet/minecraft/class_4337;field_19554:Lnet/minecraft/class_4888;
      official g Lfhf;g:Lfiv;
    • sessionId

      private final String sessionId
      Mappings:
      Namespace Name Mixin selector
      named sessionId Lnet/minecraft/client/realms/FileUpload;sessionId:Ljava/lang/String;
      intermediary field_19555 Lnet/minecraft/class_4337;field_19555:Ljava/lang/String;
      official h Lfhf;h:Ljava/lang/String;
    • username

      private final String username
      Mappings:
      Namespace Name Mixin selector
      named username Lnet/minecraft/client/realms/FileUpload;username:Ljava/lang/String;
      intermediary field_19556 Lnet/minecraft/class_4337;field_19556:Ljava/lang/String;
      official i Lfhf;i:Ljava/lang/String;
    • clientVersion

      private final String clientVersion
      Mappings:
      Namespace Name Mixin selector
      named clientVersion Lnet/minecraft/client/realms/FileUpload;clientVersion:Ljava/lang/String;
      intermediary field_19557 Lnet/minecraft/class_4337;field_19557:Ljava/lang/String;
      official j Lfhf;j:Ljava/lang/String;
    • worldVersion

      private final String worldVersion
      Mappings:
      Namespace Name Mixin selector
      named worldVersion Lnet/minecraft/client/realms/FileUpload;worldVersion:Ljava/lang/String;
      intermediary field_49104 Lnet/minecraft/class_4337;field_49104:Ljava/lang/String;
      official k Lfhf;k:Ljava/lang/String;
    • uploadStatus

      private final UploadProgress uploadStatus
      Mappings:
      Namespace Name Mixin selector
      named uploadStatus Lnet/minecraft/client/realms/FileUpload;uploadStatus:Lnet/minecraft/client/realms/util/UploadProgress;
      intermediary field_19558 Lnet/minecraft/class_4337;field_19558:Lnet/minecraft/class_4351;
      official l Lfhf;l:Lfhl;
    • cancelled

      final AtomicBoolean cancelled
      Mappings:
      Namespace Name Mixin selector
      named cancelled Lnet/minecraft/client/realms/FileUpload;cancelled:Ljava/util/concurrent/atomic/AtomicBoolean;
      intermediary field_19559 Lnet/minecraft/class_4337;field_19559:Ljava/util/concurrent/atomic/AtomicBoolean;
      official m Lfhf;m:Ljava/util/concurrent/atomic/AtomicBoolean;
    • uploadTask

      Mappings:
      Namespace Name Mixin selector
      named uploadTask Lnet/minecraft/client/realms/FileUpload;uploadTask:Ljava/util/concurrent/CompletableFuture;
      intermediary field_19560 Lnet/minecraft/class_4337;field_19560:Ljava/util/concurrent/CompletableFuture;
      official n Lfhf;n:Ljava/util/concurrent/CompletableFuture;
    • requestConfig

      private final RequestConfig requestConfig
      Mappings:
      Namespace Name Mixin selector
      named requestConfig Lnet/minecraft/client/realms/FileUpload;requestConfig:Lorg/apache/http/client/config/RequestConfig;
      intermediary field_19561 Lnet/minecraft/class_4337;field_19561:Lorg/apache/http/client/config/RequestConfig;
      official o Lfhf;o:Lorg/apache/http/client/config/RequestConfig;
  • Constructor Details

    • FileUpload

      public FileUpload(File file, long worldId, int slotId, UploadInfo uploadInfo, Session session, String clientVersion, String worldVersion, UploadProgress uploadStatus)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/realms/FileUpload;<init>(Ljava/io/File;JILnet/minecraft/client/realms/dto/UploadInfo;Lnet/minecraft/client/session/Session;Ljava/lang/String;Ljava/lang/String;Lnet/minecraft/client/realms/util/UploadProgress;)V
      intermediary <init> Lnet/minecraft/class_4337;<init>(Ljava/io/File;JILnet/minecraft/class_4888;Lnet/minecraft/class_320;Ljava/lang/String;Ljava/lang/String;Lnet/minecraft/class_4351;)V
      official <init> Lfhf;<init>(Ljava/io/File;JILfiv;Lfmr;Ljava/lang/String;Ljava/lang/String;Lfhl;)V
  • Method Details

    • upload

      public UploadResult upload()
      Mappings:
      Namespace Name Mixin selector
      named upload Lnet/minecraft/client/realms/FileUpload;upload()Lnet/minecraft/client/realms/util/UploadResult;
      intermediary method_20973 Lnet/minecraft/class_4337;method_20973()Lnet/minecraft/class_4429;
      official a Lfhf;a()Lfkm;
    • cancel

      public void cancel()
      Mappings:
      Namespace Name Mixin selector
      named cancel Lnet/minecraft/client/realms/FileUpload;cancel()V
      intermediary method_20970 Lnet/minecraft/class_4337;method_20970()V
      official b Lfhf;b()V
    • requestUpload

      private UploadResult requestUpload(int currentAttempt)
      Mappings:
      Namespace Name Mixin selector
      named requestUpload Lnet/minecraft/client/realms/FileUpload;requestUpload(I)Lnet/minecraft/client/realms/util/UploadResult;
      intermediary method_20971 Lnet/minecraft/class_4337;method_20971(I)Lnet/minecraft/class_4429;
      official a Lfhf;a(I)Lfkm;
    • cleanup

      private void cleanup(HttpPost request, @Nullable @Nullable CloseableHttpClient client)
      Mappings:
      Namespace Name Mixin selector
      named cleanup Lnet/minecraft/client/realms/FileUpload;cleanup(Lorg/apache/http/client/methods/HttpPost;Lorg/apache/http/impl/client/CloseableHttpClient;)V
      intermediary method_20977 Lnet/minecraft/class_4337;method_20977(Lorg/apache/http/client/methods/HttpPost;Lorg/apache/http/impl/client/CloseableHttpClient;)V
      official a Lfhf;a(Lorg/apache/http/client/methods/HttpPost;Lorg/apache/http/impl/client/CloseableHttpClient;)V
    • setupRequest

      private void setupRequest(HttpPost request) throws FileNotFoundException
      Throws:
      FileNotFoundException
      Mappings:
      Namespace Name Mixin selector
      named setupRequest Lnet/minecraft/client/realms/FileUpload;setupRequest(Lorg/apache/http/client/methods/HttpPost;)V
      intermediary method_20976 Lnet/minecraft/class_4337;method_20976(Lorg/apache/http/client/methods/HttpPost;)V
      official a Lfhf;a(Lorg/apache/http/client/methods/HttpPost;)V
    • handleResponse

      private void handleResponse(org.apache.http.HttpResponse response, UploadResult.Builder uploadResultBuilder) throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      named handleResponse Lnet/minecraft/client/realms/FileUpload;handleResponse(Lorg/apache/http/HttpResponse;Lnet/minecraft/client/realms/util/UploadResult$Builder;)V
      intermediary method_20975 Lnet/minecraft/class_4337;method_20975(Lorg/apache/http/HttpResponse;Lnet/minecraft/class_4429$class_4430;)V
      official a Lfhf;a(Lorg/apache/http/HttpResponse;Lfkm$a;)V
    • shouldRetry

      private boolean shouldRetry(long retryDelaySeconds, int currentAttempt)
      Mappings:
      Namespace Name Mixin selector
      named shouldRetry Lnet/minecraft/client/realms/FileUpload;shouldRetry(JI)Z
      intermediary method_20972 Lnet/minecraft/class_4337;method_20972(JI)Z
      official a Lfhf;a(JI)Z
    • retryUploadAfter

      private UploadResult retryUploadAfter(long retryDelaySeconds, int currentAttempt) throws InterruptedException
      Throws:
      InterruptedException
      Mappings:
      Namespace Name Mixin selector
      named retryUploadAfter Lnet/minecraft/client/realms/FileUpload;retryUploadAfter(JI)Lnet/minecraft/client/realms/util/UploadResult;
      intermediary method_20979 Lnet/minecraft/class_4337;method_20979(JI)Lnet/minecraft/class_4429;
      official b Lfhf;b(JI)Lfkm;
    • getRetryDelaySeconds

      private long getRetryDelaySeconds(org.apache.http.HttpResponse response)
      Mappings:
      Namespace Name Mixin selector
      named getRetryDelaySeconds Lnet/minecraft/client/realms/FileUpload;getRetryDelaySeconds(Lorg/apache/http/HttpResponse;)J
      intermediary method_20974 Lnet/minecraft/class_4337;method_20974(Lorg/apache/http/HttpResponse;)J
      official a Lfhf;a(Lorg/apache/http/HttpResponse;)J
    • isFinished

      public boolean isFinished()
      Mappings:
      Namespace Name Mixin selector
      named isFinished Lnet/minecraft/client/realms/FileUpload;isFinished()Z
      intermediary method_20978 Lnet/minecraft/class_4337;method_20978()Z
      official c Lfhf;c()Z