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 ezw
intermediary net/minecraft/class_1066
named net/minecraft/client/resource/ClientBuiltinResourcePackProvider
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final Text
private static final PackResourceMetadata
private @Nullable CompletableFuture<?>
private final ResourceIndex
private final ReentrantLock
private static final Logger
private static final int
private static final int
private final DefaultResourcePack
private static final String
private static final String
private static final String
private @Nullable ResourcePackProfile
private final File
private static final Pattern
private static final String
-
Constructor Summary
ConstructorDescriptionClientBuiltinResourcePackProvider
(File serverPacksRoot, ResourceIndex index) -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
private static void
private void
getPack()
private static DirectoryResourcePack
getProgrammerArtResourcePackFromDirectory
(File packDirectory) private static ResourcePack
private @Nullable ResourcePackProfile
private static @Nullable ResourcePackProfile
getProgrammerArtResourcePackProfile
(ResourcePackProfile.Factory factory, Supplier<ResourcePack> packSupplier) loadServerPack
(File packZip, ResourcePackSource packSource) void
register
(Consumer<ResourcePackProfile> profileAdder, ResourcePackProfile.Factory factory) Register resource pack profiles created with thefactory
to theprofileAdder
.private boolean
verifyFile
(String expectedSha1, File file)
-
Field Details
-
DEFAULT_PACK_METADATA
- Mappings:
Namespace Name Mixin selector official a
Lezw;a:Laer;
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
Lezw;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;
-
SHA1_PATTERN
- Mappings:
Namespace Name Mixin selector official c
Lezw;c:Ljava/util/regex/Pattern;
intermediary field_5296
Lnet/minecraft/class_1066;field_5296:Ljava/util/regex/Pattern;
named SHA1_PATTERN
Lnet/minecraft/client/resource/ClientBuiltinResourcePackProvider;SHA1_PATTERN:Ljava/util/regex/Pattern;
-
MAX_FILE_SIZE
private static final int MAX_FILE_SIZE- See Also:
- Mappings:
Namespace Name Mixin selector official d
Lezw;d:I
intermediary field_32958
Lnet/minecraft/class_1066;field_32958:I
named MAX_FILE_SIZE
Lnet/minecraft/client/resource/ClientBuiltinResourcePackProvider;MAX_FILE_SIZE:I
-
MAX_SAVED_PACKS
private static final int MAX_SAVED_PACKS- See Also:
- Mappings:
Namespace Name Mixin selector official e
Lezw;e:I
intermediary field_32959
Lnet/minecraft/class_1066;field_32959:I
named MAX_SAVED_PACKS
Lnet/minecraft/client/resource/ClientBuiltinResourcePackProvider;MAX_SAVED_PACKS:I
-
VANILLA
- See Also:
- Mappings:
Namespace Name Mixin selector official f
Lezw;f:Ljava/lang/String;
intermediary field_32960
Lnet/minecraft/class_1066;field_32960:Ljava/lang/String;
named VANILLA
Lnet/minecraft/client/resource/ClientBuiltinResourcePackProvider;VANILLA:Ljava/lang/String;
-
SERVER
- See Also:
- Mappings:
Namespace Name Mixin selector official g
Lezw;g:Ljava/lang/String;
intermediary field_32961
Lnet/minecraft/class_1066;field_32961:Ljava/lang/String;
named SERVER
Lnet/minecraft/client/resource/ClientBuiltinResourcePackProvider;SERVER:Ljava/lang/String;
-
PROGRAMER_ART_ID
- See Also:
- Mappings:
Namespace Name Mixin selector official h
Lezw;h:Ljava/lang/String;
intermediary field_32962
Lnet/minecraft/class_1066;field_32962:Ljava/lang/String;
named PROGRAMER_ART_ID
Lnet/minecraft/client/resource/ClientBuiltinResourcePackProvider;PROGRAMER_ART_ID:Ljava/lang/String;
-
PROGRAMMER_ART_NAME
- See Also:
- Mappings:
Namespace Name Mixin selector official i
Lezw;i:Ljava/lang/String;
intermediary field_32963
Lnet/minecraft/class_1066;field_32963:Ljava/lang/String;
named PROGRAMMER_ART_NAME
Lnet/minecraft/client/resource/ClientBuiltinResourcePackProvider;PROGRAMMER_ART_NAME:Ljava/lang/String;
-
APPLYING_PACK_TEXT
- Mappings:
Namespace Name Mixin selector official j
Lezw;j:Lpz;
intermediary field_33633
Lnet/minecraft/class_1066;field_33633:Lnet/minecraft/class_2561;
named APPLYING_PACK_TEXT
Lnet/minecraft/client/resource/ClientBuiltinResourcePackProvider;APPLYING_PACK_TEXT:Lnet/minecraft/text/Text;
-
pack
- Mappings:
Namespace Name Mixin selector official k
Lezw;k:Laep;
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 l
Lezw;l: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 m
Lezw;m: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 n
Lezw;n:Lezv;
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 o
Lezw;o: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 p
Lezw;p:Laex;
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>
Lezw;<init>(Ljava/io/File;Lezv;)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
public void register(Consumer<ResourcePackProfile> profileAdder, ResourcePackProfile.Factory factory) Register resource pack profiles created with thefactory
to theprofileAdder
.- Specified by:
register
in interfaceResourcePackProvider
- Parameters:
profileAdder
- the profile adder that accepts created resource pack profilesfactory
- the factory that creates the resource pack profiles- See Also:
- Mappings:
Namespace Name Mixin selector official a
Lafb;a(Ljava/util/function/Consumer;Laex$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
Lezw;a()Laep;
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
Lezw;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
Lezw;a(Ljava/lang/String;Ljava/lang/String;Z)Ljava/util/concurrent/CompletableFuture;
intermediary method_4640
Lnet/minecraft/class_1066;method_4640(Ljava/lang/String;Ljava/lang/String;Z)Ljava/util/concurrent/CompletableFuture;
named download
Lnet/minecraft/client/resource/ClientBuiltinResourcePackProvider;download(Ljava/lang/String;Ljava/lang/String;Z)Ljava/util/concurrent/CompletableFuture;
-
delete
- Mappings:
Namespace Name Mixin selector official a
Lezw;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
Lezw;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
Lezw;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
Lezw;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
Lezw;a(Ljava/io/File;Lafa;)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 @Nullable ResourcePackProfile getProgrammerArtResourcePackProfile(ResourcePackProfile.Factory factory) - Mappings:
Namespace Name Mixin selector official a
Lezw;a(Laex$a;)Laex;
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 @Nullable ResourcePackProfile getProgrammerArtResourcePackProfile(ResourcePackProfile.Factory factory, Supplier<ResourcePack> packSupplier) - Mappings:
Namespace Name Mixin selector official a
Lezw;a(Laex$a;Ljava/util/function/Supplier;)Laex;
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
Lezw;b(Ljava/io/File;)Lael;
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
Lezw;c(Ljava/io/File;)Laem;
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;
-