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 fkj
intermediary net/minecraft/class_1066
named net/minecraft/client/resource/ClientBuiltinResourcePackProvider
  • Field Details

    • DEFAULT_PACK_METADATA

      private static final PackResourceMetadata DEFAULT_PACK_METADATA
      Mappings:
      Namespace Name Mixin selector
      official a Lfkj;a:Lahq;
      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 Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      official b Lfkj;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

      private static final Pattern SHA1_PATTERN
      Mappings:
      Namespace Name Mixin selector
      official c Lfkj;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 Lfkj;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 Lfkj;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

      private static final String VANILLA
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official f Lfkj;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

      private static final String SERVER
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official g Lfkj;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

      private static final String PROGRAMER_ART_ID
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official h Lfkj;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

      private static final String PROGRAMMER_ART_NAME
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official i Lfkj;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

      private static final Text APPLYING_PACK_TEXT
      Mappings:
      Namespace Name Mixin selector
      official j Lfkj;j:Lrq;
      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

      private final DefaultResourcePack pack
      Mappings:
      Namespace Name Mixin selector
      official k Lfkj;k:Laho;
      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

      private final File serverPacksRoot
      Mappings:
      Namespace Name Mixin selector
      official l Lfkj;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

      private final ReentrantLock lock
      Mappings:
      Namespace Name Mixin selector
      official m Lfkj;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

      private final ResourceIndex index
      Mappings:
      Namespace Name Mixin selector
      official n Lfkj;n:Lfki;
      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

      @Nullable private @Nullable CompletableFuture<?> downloadTask
      Mappings:
      Namespace Name Mixin selector
      official o Lfkj;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

      @Nullable private @Nullable ResourcePackProfile serverContainer
      Mappings:
      Namespace Name Mixin selector
      official p Lfkj;p:Lahw;
      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

      public ClientBuiltinResourcePackProvider(File serverPacksRoot, ResourceIndex index)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lfkj;<init>(Ljava/io/File;Lfki;)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 the factory to the profileAdder.
      Specified by:
      register in interface ResourcePackProvider
      Parameters:
      profileAdder - the profile adder that accepts created resource pack profiles
      factory - the factory that creates the resource pack profiles
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Laia;a(Ljava/util/function/Consumer;Lahw$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

      public DefaultResourcePack getPack()
      Mappings:
      Namespace Name Mixin selector
      official a Lfkj;a()Laho;
      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

      private static Map<String,String> getDownloadHeaders()
      Mappings:
      Namespace Name Mixin selector
      official c Lfkj;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

      public CompletableFuture<?> download(URL url, String packSha1, boolean closeAfterDownload)
      Mappings:
      Namespace Name Mixin selector
      official a Lfkj;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

      private static void delete(File file)
      Mappings:
      Namespace Name Mixin selector
      official a Lfkj;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 CompletableFuture<Void> clear()
      Mappings:
      Namespace Name Mixin selector
      official b Lfkj;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

      private boolean verifyFile(String expectedSha1, File file)
      Mappings:
      Namespace Name Mixin selector
      official a Lfkj;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 Lfkj;d()V
      intermediary method_4643 Lnet/minecraft/class_1066;method_4643()V
      named deleteOldServerPack Lnet/minecraft/client/resource/ClientBuiltinResourcePackProvider;deleteOldServerPack()V
    • loadServerPack

      public CompletableFuture<Void> loadServerPack(LevelStorage.Session session)
      Mappings:
      Namespace Name Mixin selector
      official a Lfkj;a(Ldrq$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

      public CompletableFuture<Void> loadServerPack(File packZip, ResourcePackSource packSource)
      Mappings:
      Namespace Name Mixin selector
      official a Lfkj;a(Ljava/io/File;Lahz;)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 Lfkj;a(Lahw$a;)Lahw;
      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 Lfkj;a(Lahw$a;Ljava/util/function/Supplier;)Lahw;
      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

      private static DirectoryResourcePack getProgrammerArtResourcePackFromDirectory(File packDirectory)
      Mappings:
      Namespace Name Mixin selector
      official b Lfkj;b(Ljava/io/File;)Lahk;
      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

      private static ResourcePack getProgrammerArtResourcePackFromZipFile(File zipFile)
      Mappings:
      Namespace Name Mixin selector
      official c Lfkj;c(Ljava/io/File;)Lahl;
      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;