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
named net/minecraft/resource/VanillaResourcePackProvider
intermediary net/minecraft/class_7678
official atj
  • Field Details

    • LOGGER

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

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

      public static final VersionedIdentifier VANILLA_ID
      Mappings:
      Namespace Name Mixin selector
      named VANILLA_ID Lnet/minecraft/resource/VanillaResourcePackProvider;VANILLA_ID:Lnet/minecraft/registry/VersionedIdentifier;
      intermediary field_49033 Lnet/minecraft/class_7678;field_49033:Lnet/minecraft/class_9226;
      official b Latj;b:Latl;
    • type

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

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

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

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

    • VanillaResourcePackProvider

      public VanillaResourcePackProvider(ResourceType type, DefaultResourcePack resourcePack, Identifier id, SymlinkFinder symlinkFinder)
      Mappings:
      Namespace Name Mixin selector
      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
      intermediary <init> Lnet/minecraft/class_7678;<init>(Lnet/minecraft/class_3264;Lnet/minecraft/class_3268;Lnet/minecraft/class_2960;Lnet/minecraft/class_8580;)V
      official <init> Latj;<init>(Lass;Lasu;Lakr;Lews;)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
      named register Lnet/minecraft/resource/ResourcePackProvider;register(Ljava/util/function/Consumer;)V
      intermediary method_14453 Lnet/minecraft/class_3285;method_14453(Ljava/util/function/Consumer;)V
      official loadPacks Latr;loadPacks(Ljava/util/function/Consumer;)V
    • createDefault

      @Nullable protected abstract @Nullable ResourcePackProfile createDefault(ResourcePack pack)
      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 Latj;a(Lasq;)Latm;
    • getDisplayName

      protected abstract Text getDisplayName(String id)
      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 Latj;a(Ljava/lang/String;)Lwz;
    • getResourcePack

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

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

      protected void forEachProfile(BiConsumer<String,Function<String,ResourcePackProfile>> consumer)
      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 Latj;a(Ljava/util/function/BiConsumer;)V
    • forEachProfile

      protected void forEachProfile(@Nullable @Nullable Path namespacedPath, BiConsumer<String,Function<String,ResourcePackProfile>> consumer)
      Mappings:
      Namespace Name Mixin selector
      named forEachProfile Lnet/minecraft/resource/VanillaResourcePackProvider;forEachProfile(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
      official a Latj;a(Ljava/nio/file/Path;Ljava/util/function/BiConsumer;)V
    • getFileName

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

      @Nullable protected abstract @Nullable ResourcePackProfile create(String fileName, ResourcePackProfile.PackFactory packFactory, Text displayName)
      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 Latj;a(Ljava/lang/String;Latm$c;Lwz;)Latm;
    • createPackFactory

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