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
official fzv
intermediary net/minecraft/class_1065
named net/minecraft/client/resource/DefaultClientResourcePackProvider
  • Field Details

    • METADATA

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

      private static final ResourceMetadataMap METADATA_MAP
      Mappings:
      Namespace Name Mixin selector
      official d Lfzv;d:Lamc;
      intermediary field_40557 Lnet/minecraft/class_1065;field_40557:Lnet/minecraft/class_7662;
      named METADATA_MAP Lnet/minecraft/client/resource/DefaultClientResourcePackProvider;METADATA_MAP:Lnet/minecraft/resource/metadata/ResourceMetadataMap;
    • VANILLA_NAME_TEXT

      private static final Text VANILLA_NAME_TEXT
      Mappings:
      Namespace Name Mixin selector
      official e Lfzv;e:Ltl;
      intermediary field_40558 Lnet/minecraft/class_1065;field_40558:Lnet/minecraft/class_2561;
      named VANILLA_NAME_TEXT Lnet/minecraft/client/resource/DefaultClientResourcePackProvider;VANILLA_NAME_TEXT:Lnet/minecraft/text/Text;
    • HIGH_CONTRAST_NAME

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

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

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

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

    • DefaultClientResourcePackProvider

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

    • getResourcePacksPath

      @Nullable private @Nullable Path getResourcePacksPath(Path path)
      Mappings:
      Namespace Name Mixin selector
      official a Lfzv;a(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;
      named getResourcePacksPath Lnet/minecraft/client/resource/DefaultClientResourcePackProvider;getResourcePacksPath(Ljava/nio/file/Path;)Ljava/nio/file/Path;
    • createDefaultPack

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

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

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

      @Nullable protected @Nullable ResourcePackProfile create(String name, ResourcePackProfile.PackFactory packFactory, Text displayName)
      Specified by:
      create in class VanillaResourcePackProvider
      Mappings:
      Namespace Name Mixin selector
      official a Lamz;a(Ljava/lang/String;Lanb$c;Ltl;)Lanb;
      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;
      named create Lnet/minecraft/resource/VanillaResourcePackProvider;create(Ljava/lang/String;Lnet/minecraft/resource/ResourcePackProfile$PackFactory;Lnet/minecraft/text/Text;)Lnet/minecraft/resource/ResourcePackProfile;
    • forEachProfile

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