Package net.minecraft.client.resource
Class ClientBuiltinResourcePackProvider
java.lang.Object
net.minecraft.client.resource.ClientBuiltinResourcePackProvider
- All Implemented Interfaces:
ResourcePackProvider
@Environment(CLIENT) public class ClientBuiltinResourcePackProvider extends Object implements ResourcePackProvider
- Mappings:
Namespace Name official erz
intermediary net/minecraft/class_1066
named net/minecraft/client/resource/ClientBuiltinResourcePackProvider
-
Field Summary
Fields Modifier and Type Field Description private static Pattern
ALPHANUMERAL
private static PackResourceMetadata
DEFAULT_PACK_METADATA
private CompletableFuture<?>
downloadTask
private ResourceIndex
index
private ReentrantLock
lock
private static Logger
LOGGER
private DefaultResourcePack
pack
private ResourcePackProfile
serverContainer
private File
serverPacksRoot
-
Constructor Summary
Constructors Constructor Description ClientBuiltinResourcePackProvider(File serverPacksRoot, ResourceIndex index)
-
Method Summary
Modifier and Type Method Description void
clear()
private static void
delete(File file)
private void
deleteOldServerPack()
CompletableFuture<?>
download(String string, String string2)
private static Map<String,String>
getDownloadHeaders()
DefaultResourcePack
getPack()
private static DirectoryResourcePack
getProgrammerArtResourcePackFromDirectory(File packDirectory)
private static ResourcePack
getProgrammerArtResourcePackFromZipFile(File zipFile)
private ResourcePackProfile
getProgrammerArtResourcePackProfile(ResourcePackProfile.Factory factory)
private static ResourcePackProfile
getProgrammerArtResourcePackProfile(ResourcePackProfile.Factory factory, Supplier<ResourcePack> packSupplier)
CompletableFuture<Void>
loadServerPack(File packZip, ResourcePackSource packSource)
void
register(Consumer<ResourcePackProfile> consumer, ResourcePackProfile.Factory factory)
private boolean
verifyFile(String expectedSha1, File file)
-
Field Details
-
DEFAULT_PACK_METADATA
- Mappings:
Namespace Name Mixin selector official a
Lerz;a:Lace;
intermediary field_27772
Lnet/minecraft/class_1066;field_27772:Lnet/minecraft/class_3272;
named DEFAULT_PACK_METADATA
Lnet/minecraft/client/resource/ClientBuiltinResourcePackProvider;DEFAULT_PACK_METADATA:Lnet/minecraft/resource/metadata/PackResourceMetadata;
-
LOGGER
- Mappings:
Namespace Name Mixin selector official b
Lerz;b:Lorg/apache/logging/log4j/Logger;
intermediary field_5298
Lnet/minecraft/class_1066;field_5298:Lorg/apache/logging/log4j/Logger;
named LOGGER
Lnet/minecraft/client/resource/ClientBuiltinResourcePackProvider;LOGGER:Lorg/apache/logging/log4j/Logger;
-
ALPHANUMERAL
- Mappings:
Namespace Name Mixin selector official c
Lerz;c:Ljava/util/regex/Pattern;
intermediary field_5296
Lnet/minecraft/class_1066;field_5296:Ljava/util/regex/Pattern;
named ALPHANUMERAL
Lnet/minecraft/client/resource/ClientBuiltinResourcePackProvider;ALPHANUMERAL:Ljava/util/regex/Pattern;
-
pack
- Mappings:
Namespace Name Mixin selector official d
Lerz;d:Lacc;
intermediary field_5293
Lnet/minecraft/class_1066;field_5293:Lnet/minecraft/class_3268;
named pack
Lnet/minecraft/client/resource/ClientBuiltinResourcePackProvider;pack:Lnet/minecraft/resource/DefaultResourcePack;
-
serverPacksRoot
- Mappings:
Namespace Name Mixin selector official e
Lerz;e:Ljava/io/File;
intermediary field_5292
Lnet/minecraft/class_1066;field_5292:Ljava/io/File;
named serverPacksRoot
Lnet/minecraft/client/resource/ClientBuiltinResourcePackProvider;serverPacksRoot:Ljava/io/File;
-
lock
- Mappings:
Namespace Name Mixin selector official f
Lerz;f:Ljava/util/concurrent/locks/ReentrantLock;
intermediary field_5297
Lnet/minecraft/class_1066;field_5297:Ljava/util/concurrent/locks/ReentrantLock;
named lock
Lnet/minecraft/client/resource/ClientBuiltinResourcePackProvider;lock:Ljava/util/concurrent/locks/ReentrantLock;
-
index
- Mappings:
Namespace Name Mixin selector official g
Lerz;g:Lery;
intermediary field_16263
Lnet/minecraft/class_1066;field_16263:Lnet/minecraft/class_1064;
named index
Lnet/minecraft/client/resource/ClientBuiltinResourcePackProvider;index:Lnet/minecraft/client/resource/ResourceIndex;
-
downloadTask
- Mappings:
Namespace Name Mixin selector official h
Lerz;h:Ljava/util/concurrent/CompletableFuture;
intermediary field_5294
Lnet/minecraft/class_1066;field_5294:Ljava/util/concurrent/CompletableFuture;
named downloadTask
Lnet/minecraft/client/resource/ClientBuiltinResourcePackProvider;downloadTask:Ljava/util/concurrent/CompletableFuture;
-
serverContainer
- Mappings:
Namespace Name Mixin selector official i
Lerz;i:Lack;
intermediary field_5295
Lnet/minecraft/class_1066;field_5295:Lnet/minecraft/class_3288;
named serverContainer
Lnet/minecraft/client/resource/ClientBuiltinResourcePackProvider;serverContainer:Lnet/minecraft/resource/ResourcePackProfile;
-
-
Constructor Details
-
ClientBuiltinResourcePackProvider
- Mappings:
Namespace Name Mixin selector official <init>
Lerz;<init>(Ljava/io/File;Lery;)V
intermediary <init>
Lnet/minecraft/class_1066;<init>(Ljava/io/File;Lnet/minecraft/class_1064;)V
named <init>
Lnet/minecraft/client/resource/ClientBuiltinResourcePackProvider;<init>(Ljava/io/File;Lnet/minecraft/client/resource/ResourceIndex;)V
-
-
Method Details
-
register
- Specified by:
register
in interfaceResourcePackProvider
- Mappings:
Namespace Name Mixin selector official a
Laco;a(Ljava/util/function/Consumer;Lack$a;)V
intermediary method_14453
Lnet/minecraft/class_3285;method_14453(Ljava/util/function/Consumer;Lnet/minecraft/class_3288$class_5351;)V
named register
Lnet/minecraft/resource/ResourcePackProvider;register(Ljava/util/function/Consumer;Lnet/minecraft/resource/ResourcePackProfile$Factory;)V
-
getPack
- Mappings:
Namespace Name Mixin selector official a
Lerz;a()Lacc;
intermediary method_4633
Lnet/minecraft/class_1066;method_4633()Lnet/minecraft/class_3268;
named getPack
Lnet/minecraft/client/resource/ClientBuiltinResourcePackProvider;getPack()Lnet/minecraft/resource/DefaultResourcePack;
-
getDownloadHeaders
- Mappings:
Namespace Name Mixin selector official c
Lerz;c()Ljava/util/Map;
intermediary method_4636
Lnet/minecraft/class_1066;method_4636()Ljava/util/Map;
named getDownloadHeaders
Lnet/minecraft/client/resource/ClientBuiltinResourcePackProvider;getDownloadHeaders()Ljava/util/Map;
-
download
- Mappings:
Namespace Name Mixin selector official a
Lerz;a(Ljava/lang/String;Ljava/lang/String;)Ljava/util/concurrent/CompletableFuture;
intermediary method_4640
Lnet/minecraft/class_1066;method_4640(Ljava/lang/String;Ljava/lang/String;)Ljava/util/concurrent/CompletableFuture;
named download
Lnet/minecraft/client/resource/ClientBuiltinResourcePackProvider;download(Ljava/lang/String;Ljava/lang/String;)Ljava/util/concurrent/CompletableFuture;
-
delete
- Mappings:
Namespace Name Mixin selector official a
Lerz;a(Ljava/io/File;)V
intermediary method_19437
Lnet/minecraft/class_1066;method_19437(Ljava/io/File;)V
named delete
Lnet/minecraft/client/resource/ClientBuiltinResourcePackProvider;delete(Ljava/io/File;)V
-
clear
public void clear()- Mappings:
Namespace Name Mixin selector official b
Lerz;b()V
intermediary method_4642
Lnet/minecraft/class_1066;method_4642()V
named clear
Lnet/minecraft/client/resource/ClientBuiltinResourcePackProvider;clear()V
-
verifyFile
- Mappings:
Namespace Name Mixin selector official a
Lerz;a(Ljava/lang/String;Ljava/io/File;)Z
intermediary method_4641
Lnet/minecraft/class_1066;method_4641(Ljava/lang/String;Ljava/io/File;)Z
named verifyFile
Lnet/minecraft/client/resource/ClientBuiltinResourcePackProvider;verifyFile(Ljava/lang/String;Ljava/io/File;)Z
-
deleteOldServerPack
private void deleteOldServerPack()- Mappings:
Namespace Name Mixin selector official d
Lerz;d()V
intermediary method_4643
Lnet/minecraft/class_1066;method_4643()V
named deleteOldServerPack
Lnet/minecraft/client/resource/ClientBuiltinResourcePackProvider;deleteOldServerPack()V
-
loadServerPack
- Mappings:
Namespace Name Mixin selector official a
Lerz;a(Ljava/io/File;Lacn;)Ljava/util/concurrent/CompletableFuture;
intermediary method_4638
Lnet/minecraft/class_1066;method_4638(Ljava/io/File;Lnet/minecraft/class_5352;)Ljava/util/concurrent/CompletableFuture;
named loadServerPack
Lnet/minecraft/client/resource/ClientBuiltinResourcePackProvider;loadServerPack(Ljava/io/File;Lnet/minecraft/resource/ResourcePackSource;)Ljava/util/concurrent/CompletableFuture;
-
getProgrammerArtResourcePackProfile
@Nullable private ResourcePackProfile getProgrammerArtResourcePackProfile(ResourcePackProfile.Factory factory)- Mappings:
Namespace Name Mixin selector official a
Lerz;a(Lack$a;)Lack;
intermediary method_25454
Lnet/minecraft/class_1066;method_25454(Lnet/minecraft/class_3288$class_5351;)Lnet/minecraft/class_3288;
named getProgrammerArtResourcePackProfile
Lnet/minecraft/client/resource/ClientBuiltinResourcePackProvider;getProgrammerArtResourcePackProfile(Lnet/minecraft/resource/ResourcePackProfile$Factory;)Lnet/minecraft/resource/ResourcePackProfile;
-
getProgrammerArtResourcePackProfile
@Nullable private static ResourcePackProfile getProgrammerArtResourcePackProfile(ResourcePackProfile.Factory factory, Supplier<ResourcePack> packSupplier)- Mappings:
Namespace Name Mixin selector official a
Lerz;a(Lack$a;Ljava/util/function/Supplier;)Lack;
intermediary method_25453
Lnet/minecraft/class_1066;method_25453(Lnet/minecraft/class_3288$class_5351;Ljava/util/function/Supplier;)Lnet/minecraft/class_3288;
named getProgrammerArtResourcePackProfile
Lnet/minecraft/client/resource/ClientBuiltinResourcePackProvider;getProgrammerArtResourcePackProfile(Lnet/minecraft/resource/ResourcePackProfile$Factory;Ljava/util/function/Supplier;)Lnet/minecraft/resource/ResourcePackProfile;
-
getProgrammerArtResourcePackFromDirectory
- Mappings:
Namespace Name Mixin selector official b
Lerz;b(Ljava/io/File;)Laby;
intermediary method_25455
Lnet/minecraft/class_1066;method_25455(Ljava/io/File;)Lnet/minecraft/class_3259;
named getProgrammerArtResourcePackFromDirectory
Lnet/minecraft/client/resource/ClientBuiltinResourcePackProvider;getProgrammerArtResourcePackFromDirectory(Ljava/io/File;)Lnet/minecraft/resource/DirectoryResourcePack;
-
getProgrammerArtResourcePackFromZipFile
- Mappings:
Namespace Name Mixin selector official c
Lerz;c(Ljava/io/File;)Labz;
intermediary method_16048
Lnet/minecraft/class_1066;method_16048(Ljava/io/File;)Lnet/minecraft/class_3262;
named getProgrammerArtResourcePackFromZipFile
Lnet/minecraft/client/resource/ClientBuiltinResourcePackProvider;getProgrammerArtResourcePackFromZipFile(Ljava/io/File;)Lnet/minecraft/resource/ResourcePack;
-