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 akc
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 Lakc;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 Lakc;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 Lakc;c:Lajk;
      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 Lakc;d:Lajm;
      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 Lakc;e:Lacq;
      intermediary field_40043 Lnet/minecraft/class_7678;field_40043:Lnet/minecraft/class_2960;
      named id Lnet/minecraft/resource/VanillaResourcePackProvider;id:Lnet/minecraft/util/Identifier;
  • Constructor Details

    • VanillaResourcePackProvider

      public VanillaResourcePackProvider(ResourceType type, DefaultResourcePack resourcePack, Identifier id)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lakc;<init>(Lajk;Lajm;Lacq;)V
      intermediary <init> Lnet/minecraft/class_7678;<init>(Lnet/minecraft/class_3264;Lnet/minecraft/class_3268;Lnet/minecraft/class_2960;)V
      named <init> Lnet/minecraft/resource/VanillaResourcePackProvider;<init>(Lnet/minecraft/resource/ResourceType;Lnet/minecraft/resource/DefaultResourcePack;Lnet/minecraft/util/Identifier;)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 Laki;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 Lakc;a(Lajj;)Lake;
      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 Lakc;a(Ljava/lang/String;)Lsw;
      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 Lakc;a()Lajm;
      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 Lakc;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 Lakc;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 Lakc;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 Lakc;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 Lakc;a(Ljava/lang/String;Lake$c;Lsw;)Lake;
      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;