Package net.minecraft.client.realms.util
Class UploadCompressor
java.lang.Object
net.minecraft.client.realms.util.UploadCompressor
- Mappings:
Namespace Name named net/minecraft/client/realms/util/UploadCompressor
intermediary net/minecraft/class_10237
official fht
-
Field Summary
Modifier and TypeFieldDescriptionprivate final BooleanSupplier
private final Path
private static final String
private static final long
-
Constructor Summary
ModifierConstructorDescriptionprivate
UploadCompressor
(Path directory, BooleanSupplier cancellationSupplier) -
Method Summary
Modifier and TypeMethodDescriptionstatic File
compress
(Path directory, BooleanSupplier cancellationSupplier) private void
compress
(TarArchiveOutputStream stream, Path directory, String prefix, boolean root) private File
run()
private void
validateSize
(long size)
-
Field Details
-
MAX_SIZE
private static final long MAX_SIZE- See Also:
- Mappings:
Namespace Name Mixin selector named MAX_SIZE
Lnet/minecraft/client/realms/util/UploadCompressor;MAX_SIZE:J
intermediary field_54368
Lnet/minecraft/class_10237;field_54368:J
official a
Lfht;a:J
-
field_54369
- See Also:
- Mappings:
Namespace Name Mixin selector named field_54369
Lnet/minecraft/client/realms/util/UploadCompressor;field_54369:Ljava/lang/String;
intermediary field_54369
Lnet/minecraft/class_10237;field_54369:Ljava/lang/String;
official b
Lfht;b:Ljava/lang/String;
-
cancellationSupplier
- Mappings:
Namespace Name Mixin selector named cancellationSupplier
Lnet/minecraft/client/realms/util/UploadCompressor;cancellationSupplier:Ljava/util/function/BooleanSupplier;
intermediary field_54370
Lnet/minecraft/class_10237;field_54370:Ljava/util/function/BooleanSupplier;
official c
Lfht;c:Ljava/util/function/BooleanSupplier;
-
directory
- Mappings:
Namespace Name Mixin selector named directory
Lnet/minecraft/client/realms/util/UploadCompressor;directory:Ljava/nio/file/Path;
intermediary field_54371
Lnet/minecraft/class_10237;field_54371:Ljava/nio/file/Path;
official d
Lfht;d:Ljava/nio/file/Path;
-
-
Constructor Details
-
UploadCompressor
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/client/realms/util/UploadCompressor;<init>(Ljava/nio/file/Path;Ljava/util/function/BooleanSupplier;)V
intermediary <init>
Lnet/minecraft/class_10237;<init>(Ljava/nio/file/Path;Ljava/util/function/BooleanSupplier;)V
official <init>
Lfht;<init>(Ljava/nio/file/Path;Ljava/util/function/BooleanSupplier;)V
-
-
Method Details
-
compress
public static File compress(Path directory, BooleanSupplier cancellationSupplier) throws IOException - Throws:
IOException
- Mappings:
Namespace Name Mixin selector named compress
Lnet/minecraft/client/realms/util/UploadCompressor;compress(Ljava/nio/file/Path;Ljava/util/function/BooleanSupplier;)Ljava/io/File;
intermediary method_64342
Lnet/minecraft/class_10237;method_64342(Ljava/nio/file/Path;Ljava/util/function/BooleanSupplier;)Ljava/io/File;
official a
Lfht;a(Ljava/nio/file/Path;Ljava/util/function/BooleanSupplier;)Ljava/io/File;
-
run
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector named run
Lnet/minecraft/client/realms/util/UploadCompressor;run()Ljava/io/File;
intermediary method_64340
Lnet/minecraft/class_10237;method_64340()Ljava/io/File;
official a
Lfht;a()Ljava/io/File;
-
compress
private void compress(TarArchiveOutputStream stream, Path directory, String prefix, boolean root) throws IOException - Throws:
IOException
- Mappings:
Namespace Name Mixin selector named compress
Lnet/minecraft/client/realms/util/UploadCompressor;compress(Lorg/apache/commons/compress/archivers/tar/TarArchiveOutputStream;Ljava/nio/file/Path;Ljava/lang/String;Z)V
intermediary method_64343
Lnet/minecraft/class_10237;method_64343(Lorg/apache/commons/compress/archivers/tar/TarArchiveOutputStream;Ljava/nio/file/Path;Ljava/lang/String;Z)V
official a
Lfht;a(Lorg/apache/commons/compress/archivers/tar/TarArchiveOutputStream;Ljava/nio/file/Path;Ljava/lang/String;Z)V
-
validateSize
private void validateSize(long size) - Mappings:
Namespace Name Mixin selector named validateSize
Lnet/minecraft/client/realms/util/UploadCompressor;validateSize(J)V
intermediary method_64341
Lnet/minecraft/class_10237;method_64341(J)V
official a
Lfht;a(J)V
-