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 fik
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 org.slf4j.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 TypeMethodDescriptionclear()
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) loadServerPack
(LevelStorage.Session session) 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
Lfik;a:Lagy;
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
private static final org.slf4j.Logger LOGGER- Mappings:
Namespace Name Mixin selector official b
Lfik;b:Lorg/slf4j/Logger;
intermediary field_5298
Lnet/minecraft/class_1066;field_5298:Lorg/slf4j/Logger;
named LOGGER
Lnet/minecraft/client/resource/ClientBuiltinResourcePackProvider;LOGGER:Lorg/slf4j/Logger;
-
SHA1_PATTERN
- Mappings:
Namespace Name Mixin selector official c
Lfik;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
Lfik;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
Lfik;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
Lfik;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
Lfik;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
Lfik;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
Lfik;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
Lfik;j:Lrm;
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
Lfik;k:Lagw;
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
Lfik;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
Lfik;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
Lfik;n:Lfij;
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
Lfik;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
Lfik;p:Lahe;
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>
Lfik;<init>(Ljava/io/File;Lfij;)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
Lahi;a(Ljava/util/function/Consumer;Lahe$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
Lfik;a()Lagw;
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
Lfik;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
Lfik;a(Ljava/net/URL;Ljava/lang/String;Z)Ljava/util/concurrent/CompletableFuture;
intermediary method_4640
Lnet/minecraft/class_1066;method_4640(Ljava/net/URL;Ljava/lang/String;Z)Ljava/util/concurrent/CompletableFuture;
named download
Lnet/minecraft/client/resource/ClientBuiltinResourcePackProvider;download(Ljava/net/URL;Ljava/lang/String;Z)Ljava/util/concurrent/CompletableFuture;
-
delete
- Mappings:
Namespace Name Mixin selector official a
Lfik;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
- Mappings:
Namespace Name Mixin selector official b
Lfik;b()Ljava/util/concurrent/CompletableFuture;
intermediary method_4642
Lnet/minecraft/class_1066;method_4642()Ljava/util/concurrent/CompletableFuture;
named clear
Lnet/minecraft/client/resource/ClientBuiltinResourcePackProvider;clear()Ljava/util/concurrent/CompletableFuture;
-
verifyFile
- Mappings:
Namespace Name Mixin selector official a
Lfik;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
Lfik;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
Lfik;a(Ldqs$c;)Ljava/util/concurrent/CompletableFuture;
intermediary method_43339
Lnet/minecraft/class_1066;method_43339(Lnet/minecraft/class_32$class_5143;)Ljava/util/concurrent/CompletableFuture;
named loadServerPack
Lnet/minecraft/client/resource/ClientBuiltinResourcePackProvider;loadServerPack(Lnet/minecraft/world/level/storage/LevelStorage$Session;)Ljava/util/concurrent/CompletableFuture;
-
loadServerPack
- Mappings:
Namespace Name Mixin selector official a
Lfik;a(Ljava/io/File;Lahh;)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
Lfik;a(Lahe$a;)Lahe;
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
Lfik;a(Lahe$a;Ljava/util/function/Supplier;)Lahe;
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
Lfik;b(Ljava/io/File;)Lags;
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
Lfik;c(Ljava/io/File;)Lagt;
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;
-