Class DefaultClientResourcePackProvider

java.lang.Object
net.minecraft.resource.VanillaResourcePackProvider
net.minecraft.client.resource.DefaultClientResourcePackProvider
All Implemented Interfaces:
ResourcePackProvider

@Environment(CLIENT) public class DefaultClientResourcePackProvider extends VanillaResourcePackProvider
Mappings:
Namespace Name
named net/minecraft/client/resource/DefaultClientResourcePackProvider
intermediary net/minecraft/class_1065
official gpr
  • Field Details

    • METADATA

      private static final PackResourceMetadata METADATA
      Mappings:
      Namespace Name Mixin selector
      named METADATA Lnet/minecraft/client/resource/DefaultClientResourcePackProvider;METADATA:Lnet/minecraft/resource/metadata/PackResourceMetadata;
      intermediary field_40556 Lnet/minecraft/class_1065;field_40556:Lnet/minecraft/class_3272;
      official d Lgpr;d:Latq;
    • METADATA_MAP

      private static final ResourceMetadataMap METADATA_MAP
      Mappings:
      Namespace Name Mixin selector
      named METADATA_MAP Lnet/minecraft/client/resource/DefaultClientResourcePackProvider;METADATA_MAP:Lnet/minecraft/resource/metadata/ResourceMetadataMap;
      intermediary field_40557 Lnet/minecraft/class_1065;field_40557:Lnet/minecraft/class_7662;
      official e Lgpr;e:Last;
    • HIGH_CONTRAST_ID

      public static final String HIGH_CONTRAST_ID
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named HIGH_CONTRAST_ID Lnet/minecraft/client/resource/DefaultClientResourcePackProvider;HIGH_CONTRAST_ID:Ljava/lang/String;
      intermediary field_43088 Lnet/minecraft/class_1065;field_43088:Ljava/lang/String;
      official c Lgpr;c:Ljava/lang/String;
    • PROFILE_NAME_TEXTS

      private static final Map<String,Text> PROFILE_NAME_TEXTS
      Mappings:
      Namespace Name Mixin selector
      named PROFILE_NAME_TEXTS Lnet/minecraft/client/resource/DefaultClientResourcePackProvider;PROFILE_NAME_TEXTS:Ljava/util/Map;
      intermediary field_40559 Lnet/minecraft/class_1065;field_40559:Ljava/util/Map;
      official f Lgpr;f:Ljava/util/Map;
    • INFO

      private static final ResourcePackInfo INFO
      Mappings:
      Namespace Name Mixin selector
      named INFO Lnet/minecraft/client/resource/DefaultClientResourcePackProvider;INFO:Lnet/minecraft/resource/ResourcePackInfo;
      intermediary field_49131 Lnet/minecraft/class_1065;field_49131:Lnet/minecraft/class_9224;
      official g Lgpr;g:Lata;
    • REQUIRED_POSITION

      private static final ResourcePackPosition REQUIRED_POSITION
      Mappings:
      Namespace Name Mixin selector
      named REQUIRED_POSITION Lnet/minecraft/client/resource/DefaultClientResourcePackProvider;REQUIRED_POSITION:Lnet/minecraft/resource/ResourcePackPosition;
      intermediary field_49132 Lnet/minecraft/class_1065;field_49132:Lnet/minecraft/class_9225;
      official h Lgpr;h:Latc;
    • OPTIONAL_POSITION

      private static final ResourcePackPosition OPTIONAL_POSITION
      Mappings:
      Namespace Name Mixin selector
      named OPTIONAL_POSITION Lnet/minecraft/client/resource/DefaultClientResourcePackProvider;OPTIONAL_POSITION:Lnet/minecraft/resource/ResourcePackPosition;
      intermediary field_49133 Lnet/minecraft/class_1065;field_49133:Lnet/minecraft/class_9225;
      official i Lgpr;i:Latc;
    • ID

      private static final Identifier ID
      Mappings:
      Namespace Name Mixin selector
      named ID Lnet/minecraft/client/resource/DefaultClientResourcePackProvider;ID:Lnet/minecraft/util/Identifier;
      intermediary field_40560 Lnet/minecraft/class_1065;field_40560:Lnet/minecraft/class_2960;
      official j Lgpr;j:Lalf;
    • resourcePacksPath

      @Nullable private final @Nullable Path resourcePacksPath
      Mappings:
      Namespace Name Mixin selector
      named resourcePacksPath Lnet/minecraft/client/resource/DefaultClientResourcePackProvider;resourcePacksPath:Ljava/nio/file/Path;
      intermediary field_40561 Lnet/minecraft/class_1065;field_40561:Ljava/nio/file/Path;
      official k Lgpr;k:Ljava/nio/file/Path;
  • Constructor Details

    • DefaultClientResourcePackProvider

      public DefaultClientResourcePackProvider(Path assetsPath, SymlinkFinder symlinkFinder)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/resource/DefaultClientResourcePackProvider;<init>(Ljava/nio/file/Path;Lnet/minecraft/util/path/SymlinkFinder;)V
      intermediary <init> Lnet/minecraft/class_1065;<init>(Ljava/nio/file/Path;Lnet/minecraft/class_8580;)V
      official <init> Lgpr;<init>(Ljava/nio/file/Path;Levi;)V
  • Method Details

    • createInfo

      private static ResourcePackInfo createInfo(String id, Text title)
      Mappings:
      Namespace Name Mixin selector
      named createInfo Lnet/minecraft/client/resource/DefaultClientResourcePackProvider;createInfo(Ljava/lang/String;Lnet/minecraft/text/Text;)Lnet/minecraft/resource/ResourcePackInfo;
      intermediary method_57056 Lnet/minecraft/class_1065;method_57056(Ljava/lang/String;Lnet/minecraft/class_2561;)Lnet/minecraft/class_9224;
      official a Lgpr;a(Ljava/lang/String;Lxp;)Lata;
    • getResourcePacksPath

      @Nullable private @Nullable Path getResourcePacksPath(Path path)
      Mappings:
      Namespace Name Mixin selector
      named getResourcePacksPath Lnet/minecraft/client/resource/DefaultClientResourcePackProvider;getResourcePacksPath(Ljava/nio/file/Path;)Ljava/nio/file/Path;
      intermediary method_45856 Lnet/minecraft/class_1065;method_45856(Ljava/nio/file/Path;)Ljava/nio/file/Path;
      official a Lgpr;a(Ljava/nio/file/Path;)Ljava/nio/file/Path;
    • createDefaultPack

      private static DefaultResourcePack createDefaultPack(Path assetsPath)
      Mappings:
      Namespace Name Mixin selector
      named createDefaultPack Lnet/minecraft/client/resource/DefaultClientResourcePackProvider;createDefaultPack(Ljava/nio/file/Path;)Lnet/minecraft/resource/DefaultResourcePack;
      intermediary method_45857 Lnet/minecraft/class_1065;method_45857(Ljava/nio/file/Path;)Lnet/minecraft/class_3268;
      official b Lgpr;b(Ljava/nio/file/Path;)Latf;
    • getDisplayName

      protected Text getDisplayName(String id)
      Specified by:
      getDisplayName in class VanillaResourcePackProvider
      Mappings:
      Namespace Name Mixin selector
      named getDisplayName Lnet/minecraft/resource/VanillaResourcePackProvider;getDisplayName(Ljava/lang/String;)Lnet/minecraft/text/Text;
      intermediary method_45259 Lnet/minecraft/class_7678;method_45259(Ljava/lang/String;)Lnet/minecraft/class_2561;
      official a Latu;a(Ljava/lang/String;)Lxp;
    • createDefault

      @Nullable protected @Nullable ResourcePackProfile createDefault(ResourcePack pack)
      Specified by:
      createDefault in class VanillaResourcePackProvider
      Mappings:
      Namespace Name Mixin selector
      named createDefault Lnet/minecraft/resource/VanillaResourcePackProvider;createDefault(Lnet/minecraft/resource/ResourcePack;)Lnet/minecraft/resource/ResourcePackProfile;
      intermediary method_45257 Lnet/minecraft/class_7678;method_45257(Lnet/minecraft/class_3262;)Lnet/minecraft/class_3288;
      official a Latu;a(Latb;)Latx;
    • create

      @Nullable protected @Nullable ResourcePackProfile create(String fileName, ResourcePackProfile.PackFactory packFactory, Text displayName)
      Specified by:
      create in class VanillaResourcePackProvider
      Mappings:
      Namespace Name Mixin selector
      named create Lnet/minecraft/resource/VanillaResourcePackProvider;create(Ljava/lang/String;Lnet/minecraft/resource/ResourcePackProfile$PackFactory;Lnet/minecraft/text/Text;)Lnet/minecraft/resource/ResourcePackProfile;
      intermediary method_45260 Lnet/minecraft/class_7678;method_45260(Ljava/lang/String;Lnet/minecraft/class_3288$class_7680;Lnet/minecraft/class_2561;)Lnet/minecraft/class_3288;
      official a Latu;a(Ljava/lang/String;Latx$c;Lxp;)Latx;
    • forEachProfile

      protected void forEachProfile(BiConsumer<String,Function<String,ResourcePackProfile>> consumer)
      Overrides:
      forEachProfile in class VanillaResourcePackProvider
      Mappings:
      Namespace Name Mixin selector
      named forEachProfile Lnet/minecraft/resource/VanillaResourcePackProvider;forEachProfile(Ljava/util/function/BiConsumer;)V
      intermediary method_45263 Lnet/minecraft/class_7678;method_45263(Ljava/util/function/BiConsumer;)V
      official a Latu;a(Ljava/util/function/BiConsumer;)V