Class VanillaResourcePackProvider

java.lang.Object
net.minecraft.resource.VanillaResourcePackProvider
All Implemented Interfaces:
ResourcePackProvider
Direct Known Subclasses:
DefaultClientResourcePackProvider, VanillaDataPackProvider

public abstract class VanillaResourcePackProvider extends Object implements ResourcePackProvider
Mappings:
Namespace Name
official amz
intermediary net/minecraft/class_7678
named net/minecraft/resource/VanillaResourcePackProvider
  • Field Details

    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      official b Lamz;b:Lorg/slf4j/Logger;
      intermediary field_40040 Lnet/minecraft/class_7678;field_40040:Lorg/slf4j/Logger;
      named LOGGER Lnet/minecraft/resource/VanillaResourcePackProvider;LOGGER:Lorg/slf4j/Logger;
    • VANILLA_KEY

      public static final String VANILLA_KEY
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lamz;a:Ljava/lang/String;
      intermediary field_40039 Lnet/minecraft/class_7678;field_40039:Ljava/lang/String;
      named VANILLA_KEY Lnet/minecraft/resource/VanillaResourcePackProvider;VANILLA_KEY:Ljava/lang/String;
    • type

      private final ResourceType type
      Mappings:
      Namespace Name Mixin selector
      official c Lamz;c:Lami;
      intermediary field_40041 Lnet/minecraft/class_7678;field_40041:Lnet/minecraft/class_3264;
      named type Lnet/minecraft/resource/VanillaResourcePackProvider;type:Lnet/minecraft/resource/ResourceType;
    • resourcePack

      private final DefaultResourcePack resourcePack
      Mappings:
      Namespace Name Mixin selector
      official d Lamz;d:Lamk;
      intermediary field_40042 Lnet/minecraft/class_7678;field_40042:Lnet/minecraft/class_3268;
      named resourcePack Lnet/minecraft/resource/VanillaResourcePackProvider;resourcePack:Lnet/minecraft/resource/DefaultResourcePack;
    • id

      private final Identifier id
      Mappings:
      Namespace Name Mixin selector
      official e Lamz;e:Laew;
      intermediary field_40043 Lnet/minecraft/class_7678;field_40043:Lnet/minecraft/class_2960;
      named id Lnet/minecraft/resource/VanillaResourcePackProvider;id:Lnet/minecraft/util/Identifier;
    • symlinkFinder

      private final SymlinkFinder symlinkFinder
      Mappings:
      Namespace Name Mixin selector
      official f Lamz;f:Lehd;
      intermediary field_45052 Lnet/minecraft/class_7678;field_45052:Lnet/minecraft/class_8580;
      named symlinkFinder Lnet/minecraft/resource/VanillaResourcePackProvider;symlinkFinder:Lnet/minecraft/util/path/SymlinkFinder;
  • Constructor Details

    • VanillaResourcePackProvider

      public VanillaResourcePackProvider(ResourceType type, DefaultResourcePack resourcePack, Identifier id, SymlinkFinder symlinkFinder)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lamz;<init>(Lami;Lamk;Laew;Lehd;)V
      intermediary <init> Lnet/minecraft/class_7678;<init>(Lnet/minecraft/class_3264;Lnet/minecraft/class_3268;Lnet/minecraft/class_2960;Lnet/minecraft/class_8580;)V
      named <init> Lnet/minecraft/resource/VanillaResourcePackProvider;<init>(Lnet/minecraft/resource/ResourceType;Lnet/minecraft/resource/DefaultResourcePack;Lnet/minecraft/util/Identifier;Lnet/minecraft/util/path/SymlinkFinder;)V
  • Method Details

    • register

      public void register(Consumer<ResourcePackProfile> profileAdder)
      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
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lang;a(Ljava/util/function/Consumer;)V
      intermediary method_14453 Lnet/minecraft/class_3285;method_14453(Ljava/util/function/Consumer;)V
      named register Lnet/minecraft/resource/ResourcePackProvider;register(Ljava/util/function/Consumer;)V
    • createDefault

      @Nullable protected abstract @Nullable ResourcePackProfile createDefault(ResourcePack pack)
      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;
    • getProfileName

      protected abstract Text getProfileName(String id)
      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;
    • getResourcePack

      public DefaultResourcePack getResourcePack()
      Mappings:
      Namespace Name Mixin selector
      official a Lamz;a()Lamk;
      intermediary method_45256 Lnet/minecraft/class_7678;method_45256()Lnet/minecraft/class_3268;
      named getResourcePack Lnet/minecraft/resource/VanillaResourcePackProvider;getResourcePack()Lnet/minecraft/resource/DefaultResourcePack;
    • forEachProfile

      private void forEachProfile(Consumer<ResourcePackProfile> consumer)
      Mappings:
      Namespace Name Mixin selector
      official b Lamz;b(Ljava/util/function/Consumer;)V
      intermediary method_45267 Lnet/minecraft/class_7678;method_45267(Ljava/util/function/Consumer;)V
      named forEachProfile Lnet/minecraft/resource/VanillaResourcePackProvider;forEachProfile(Ljava/util/function/Consumer;)V
    • forEachProfile

      protected void forEachProfile(BiConsumer<String,Function<String,ResourcePackProfile>> consumer)
      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
    • forEachProfile

      protected void forEachProfile(@Nullable @Nullable Path namespacedPath, BiConsumer<String,Function<String,ResourcePackProfile>> consumer)
      Mappings:
      Namespace Name Mixin selector
      official a Lamz;a(Ljava/nio/file/Path;Ljava/util/function/BiConsumer;)V
      intermediary method_45262 Lnet/minecraft/class_7678;method_45262(Ljava/nio/file/Path;Ljava/util/function/BiConsumer;)V
      named forEachProfile Lnet/minecraft/resource/VanillaResourcePackProvider;forEachProfile(Ljava/nio/file/Path;Ljava/util/function/BiConsumer;)V
    • getFileName

      private static String getFileName(Path path)
      Mappings:
      Namespace Name Mixin selector
      official a Lamz;a(Ljava/nio/file/Path;)Ljava/lang/String;
      intermediary method_45261 Lnet/minecraft/class_7678;method_45261(Ljava/nio/file/Path;)Ljava/lang/String;
      named getFileName Lnet/minecraft/resource/VanillaResourcePackProvider;getFileName(Ljava/nio/file/Path;)Ljava/lang/String;
    • create

      @Nullable protected abstract @Nullable ResourcePackProfile create(String name, ResourcePackProfile.PackFactory packFactory, Text displayName)
      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;
    • createPackFactory

      protected static ResourcePackProfile.PackFactory createPackFactory(ResourcePack pack)
      Mappings:
      Namespace Name Mixin selector
      official b Lamz;b(Lamh;)Lanb$c;
      intermediary method_52435 Lnet/minecraft/class_7678;method_52435(Lnet/minecraft/class_3262;)Lnet/minecraft/class_3288$class_7680;
      named createPackFactory Lnet/minecraft/resource/VanillaResourcePackProvider;createPackFactory(Lnet/minecraft/resource/ResourcePack;)Lnet/minecraft/resource/ResourcePackProfile$PackFactory;