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 exq
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 Lexq;a:Lada;
      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 Lexq;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

      private static final Pattern ALPHANUMERAL
      Mappings:
      Namespace Name Mixin selector
      official c Lexq;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;
    • field_32958

      private static final int field_32958
      See Also:
      Constant Field Values
      Mappings:
      Namespace Name Mixin selector
      official d Lexq;d:I
      intermediary field_32958 Lnet/minecraft/class_1066;field_32958:I
      named field_32958 Lnet/minecraft/client/resource/ClientBuiltinResourcePackProvider;field_32958:I
    • field_32959

      private static final int field_32959
      See Also:
      Constant Field Values
      Mappings:
      Namespace Name Mixin selector
      official e Lexq;e:I
      intermediary field_32959 Lnet/minecraft/class_1066;field_32959:I
      named field_32959 Lnet/minecraft/client/resource/ClientBuiltinResourcePackProvider;field_32959:I
    • field_32960

      private static final String field_32960
      See Also:
      Constant Field Values
      Mappings:
      Namespace Name Mixin selector
      official f Lexq;f:Ljava/lang/String;
      intermediary field_32960 Lnet/minecraft/class_1066;field_32960:Ljava/lang/String;
      named field_32960 Lnet/minecraft/client/resource/ClientBuiltinResourcePackProvider;field_32960:Ljava/lang/String;
    • field_32961

      private static final String field_32961
      See Also:
      Constant Field Values
      Mappings:
      Namespace Name Mixin selector
      official g Lexq;g:Ljava/lang/String;
      intermediary field_32961 Lnet/minecraft/class_1066;field_32961:Ljava/lang/String;
      named field_32961 Lnet/minecraft/client/resource/ClientBuiltinResourcePackProvider;field_32961:Ljava/lang/String;
    • field_32962

      private static final String field_32962
      See Also:
      Constant Field Values
      Mappings:
      Namespace Name Mixin selector
      official h Lexq;h:Ljava/lang/String;
      intermediary field_32962 Lnet/minecraft/class_1066;field_32962:Ljava/lang/String;
      named field_32962 Lnet/minecraft/client/resource/ClientBuiltinResourcePackProvider;field_32962:Ljava/lang/String;
    • field_32963

      private static final String field_32963
      See Also:
      Constant Field Values
      Mappings:
      Namespace Name Mixin selector
      official i Lexq;i:Ljava/lang/String;
      intermediary field_32963 Lnet/minecraft/class_1066;field_32963:Ljava/lang/String;
      named field_32963 Lnet/minecraft/client/resource/ClientBuiltinResourcePackProvider;field_32963:Ljava/lang/String;
    • field_33633

      private static final Text field_33633
      Mappings:
      Namespace Name Mixin selector
      official j Lexq;j:Los;
      intermediary field_33633 Lnet/minecraft/class_1066;field_33633:Lnet/minecraft/class_2561;
      named field_33633 Lnet/minecraft/client/resource/ClientBuiltinResourcePackProvider;field_33633:Lnet/minecraft/text/Text;
    • pack

      private final DefaultResourcePack pack
      Mappings:
      Namespace Name Mixin selector
      official k Lexq;k:Lacy;
      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 Lexq;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 Lexq;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 Lexq;n:Lexp;
      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 Lexq;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 Lexq;p:Ladg;
      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> Lexq;<init>(Ljava/io/File;Lexp;)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:
      ResourcePackProfile.of(java.lang.String, boolean, java.util.function.Supplier<net.minecraft.resource.ResourcePack>, net.minecraft.resource.ResourcePackProfile.Factory, net.minecraft.resource.ResourcePackProfile.InsertionPosition, net.minecraft.resource.ResourcePackSource)
      Mappings:
      Namespace Name Mixin selector
      official a Ladk;a(Ljava/util/function/Consumer;Ladg$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 Lexq;a()Lacy;
      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 Lexq;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(String string, String string2, boolean bool)
      Mappings:
      Namespace Name Mixin selector
      official a Lexq;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

      private static void delete(File file)
      Mappings:
      Namespace Name Mixin selector
      official a Lexq;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 Lexq;b()V
      intermediary method_4642 Lnet/minecraft/class_1066;method_4642()V
      named clear Lnet/minecraft/client/resource/ClientBuiltinResourcePackProvider;clear()V
    • verifyFile

      private boolean verifyFile(String expectedSha1, File file)
      Mappings:
      Namespace Name Mixin selector
      official a Lexq;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 Lexq;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(File packZip, ResourcePackSource packSource)
      Mappings:
      Namespace Name Mixin selector
      official a Lexq;a(Ljava/io/File;Ladj;)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 Lexq;a(Ladg$a;)Ladg;
      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 Lexq;a(Ladg$a;Ljava/util/function/Supplier;)Ladg;
      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 Lexq;b(Ljava/io/File;)Lacu;
      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 Lexq;c(Ljava/io/File;)Lacv;
      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;