Class RealmsUploader

java.lang.Object
net.minecraft.client.realms.util.RealmsUploader

@Environment(CLIENT) public class RealmsUploader extends Object
Mappings:
Namespace Name
named net/minecraft/client/realms/util/RealmsUploader
intermediary net/minecraft/class_10238
official fhu
  • Field Details

    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      named LOGGER Lnet/minecraft/client/realms/util/RealmsUploader;LOGGER:Lorg/slf4j/Logger;
      intermediary field_54373 Lnet/minecraft/class_10238;field_54373:Lorg/slf4j/Logger;
      official b Lfhu;b:Lorg/slf4j/Logger;
    • MAX_ATTEMPTS

      public static final int MAX_ATTEMPTS
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named MAX_ATTEMPTS Lnet/minecraft/client/realms/util/RealmsUploader;MAX_ATTEMPTS:I
      intermediary field_54372 Lnet/minecraft/class_10238;field_54372:I
      official a Lfhu;a:I
    • client

      private final RealmsClient client
      Mappings:
      Namespace Name Mixin selector
      named client Lnet/minecraft/client/realms/util/RealmsUploader;client:Lnet/minecraft/client/realms/RealmsClient;
      intermediary field_54374 Lnet/minecraft/class_10238;field_54374:Lnet/minecraft/class_4341;
      official c Lfhu;c:Lfhh;
    • directory

      private final Path directory
      Mappings:
      Namespace Name Mixin selector
      named directory Lnet/minecraft/client/realms/util/RealmsUploader;directory:Ljava/nio/file/Path;
      intermediary field_54375 Lnet/minecraft/class_10238;field_54375:Ljava/nio/file/Path;
      official d Lfhu;d:Ljava/nio/file/Path;
    • options

      private final RealmsWorldOptions options
      Mappings:
      Namespace Name Mixin selector
      named options Lnet/minecraft/client/realms/util/RealmsUploader;options:Lnet/minecraft/client/realms/dto/RealmsWorldOptions;
      intermediary field_54376 Lnet/minecraft/class_10238;field_54376:Lnet/minecraft/class_4883;
      official e Lfhu;e:Lfio;
    • session

      private final Session session
      Mappings:
      Namespace Name Mixin selector
      named session Lnet/minecraft/client/realms/util/RealmsUploader;session:Lnet/minecraft/client/session/Session;
      intermediary field_54377 Lnet/minecraft/class_10238;field_54377:Lnet/minecraft/class_320;
      official f Lfhu;f:Lfmr;
    • worldId

      private final long worldId
      Mappings:
      Namespace Name Mixin selector
      named worldId Lnet/minecraft/client/realms/util/RealmsUploader;worldId:J
      intermediary field_54378 Lnet/minecraft/class_10238;field_54378:J
      official g Lfhu;g:J
    • slotId

      private final int slotId
      Mappings:
      Namespace Name Mixin selector
      named slotId Lnet/minecraft/client/realms/util/RealmsUploader;slotId:I
      intermediary field_54379 Lnet/minecraft/class_10238;field_54379:I
      official h Lfhu;h:I
    • progressTracker

      private final UploadProgressTracker progressTracker
      Mappings:
      Namespace Name Mixin selector
      named progressTracker Lnet/minecraft/client/realms/util/RealmsUploader;progressTracker:Lnet/minecraft/client/realms/util/UploadProgressTracker;
      intermediary field_54380 Lnet/minecraft/class_10238;field_54380:Lnet/minecraft/class_10239;
      official i Lfhu;i:Lfhv;
    • cancelled

      private volatile boolean cancelled
      Mappings:
      Namespace Name Mixin selector
      named cancelled Lnet/minecraft/client/realms/util/RealmsUploader;cancelled:Z
      intermediary field_54381 Lnet/minecraft/class_10238;field_54381:Z
      official j Lfhu;j:Z
    • upload

      @Nullable private @Nullable FileUpload upload
      Mappings:
      Namespace Name Mixin selector
      named upload Lnet/minecraft/client/realms/util/RealmsUploader;upload:Lnet/minecraft/client/realms/FileUpload;
      intermediary field_54382 Lnet/minecraft/class_10238;field_54382:Lnet/minecraft/class_4337;
      official k Lfhu;k:Lfhf;
  • Constructor Details

    • RealmsUploader

      public RealmsUploader(Path directory, RealmsWorldOptions options, Session session, long worldId, int slotId, UploadProgressTracker progressTracker)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/realms/util/RealmsUploader;<init>(Ljava/nio/file/Path;Lnet/minecraft/client/realms/dto/RealmsWorldOptions;Lnet/minecraft/client/session/Session;JILnet/minecraft/client/realms/util/UploadProgressTracker;)V
      intermediary <init> Lnet/minecraft/class_10238;<init>(Ljava/nio/file/Path;Lnet/minecraft/class_4883;Lnet/minecraft/class_320;JILnet/minecraft/class_10239;)V
      official <init> Lfhu;<init>(Ljava/nio/file/Path;Lfio;Lfmr;JILfhv;)V
  • Method Details

    • upload

      public CompletableFuture<?> upload()
      Mappings:
      Namespace Name Mixin selector
      named upload Lnet/minecraft/client/realms/util/RealmsUploader;upload()Ljava/util/concurrent/CompletableFuture;
      intermediary method_64344 Lnet/minecraft/class_10238;method_64344()Ljava/util/concurrent/CompletableFuture;
      official a Lfhu;a()Ljava/util/concurrent/CompletableFuture;
    • cancel

      public void cancel()
      Mappings:
      Namespace Name Mixin selector
      named cancel Lnet/minecraft/client/realms/util/RealmsUploader;cancel()V
      intermediary method_64345 Lnet/minecraft/class_10238;method_64345()V
      official b Lfhu;b()V
    • uploadSync

      Throws:
      RealmsServiceException
      InterruptedException
      Mappings:
      Namespace Name Mixin selector
      named uploadSync Lnet/minecraft/client/realms/util/RealmsUploader;uploadSync()Lnet/minecraft/client/realms/dto/UploadInfo;
      intermediary method_64346 Lnet/minecraft/class_10238;method_64346()Lnet/minecraft/class_4888;
      official c Lfhu;c()Lfiv;