Class FileResourcePackProvider

java.lang.Object
net.minecraft.resource.FileResourcePackProvider
All Implemented Interfaces:
ResourcePackProvider

public class FileResourcePackProvider
extends Object
implements ResourcePackProvider
Mappings:
Namespace Name
official acj
intermediary net/minecraft/class_3279
named net/minecraft/resource/FileResourcePackProvider
  • Field Details

    • POSSIBLE_PACK

      private static final FileFilter POSSIBLE_PACK
      Mappings:
      Namespace Name Mixin selector
      official a Lacj;a:Ljava/io/FileFilter;
      intermediary field_14217 Lnet/minecraft/class_3279;field_14217:Ljava/io/FileFilter;
      named POSSIBLE_PACK Lnet/minecraft/resource/FileResourcePackProvider;POSSIBLE_PACK:Ljava/io/FileFilter;
    • packsFolder

      private final File packsFolder
      Mappings:
      Namespace Name Mixin selector
      official b Lacj;b:Ljava/io/File;
      intermediary field_14218 Lnet/minecraft/class_3279;field_14218:Ljava/io/File;
      named packsFolder Lnet/minecraft/resource/FileResourcePackProvider;packsFolder:Ljava/io/File;
    • source

      private final ResourcePackSource source
      Mappings:
      Namespace Name Mixin selector
      official c Lacj;c:Lacn;
      intermediary field_25345 Lnet/minecraft/class_3279;field_25345:Lnet/minecraft/class_5352;
      named source Lnet/minecraft/resource/FileResourcePackProvider;source:Lnet/minecraft/resource/ResourcePackSource;
  • Constructor Details

    • FileResourcePackProvider

      public FileResourcePackProvider​(File packsFolder, ResourcePackSource source)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lacj;<init>(Ljava/io/File;Lacn;)V
      intermediary <init> Lnet/minecraft/class_3279;<init>(Ljava/io/File;Lnet/minecraft/class_5352;)V
      named <init> Lnet/minecraft/resource/FileResourcePackProvider;<init>(Ljava/io/File;Lnet/minecraft/resource/ResourcePackSource;)V
  • Method Details

    • register

      public void register​(Consumer<ResourcePackProfile> consumer, ResourcePackProfile.Factory factory)
      Specified by:
      register in interface ResourcePackProvider
      Mappings:
      Namespace Name Mixin selector
      official a Laco;a(Ljava/util/function/Consumer;Lack$a;)V
      intermediary method_14453 Lnet/minecraft/class_3285;method_14453(Ljava/util/function/Consumer;Lnet/minecraft/class_3288$class_5351;)V
      named register Lnet/minecraft/resource/ResourcePackProvider;register(Ljava/util/function/Consumer;Lnet/minecraft/resource/ResourcePackProfile$Factory;)V
    • createResourcePack

      private Supplier<ResourcePack> createResourcePack​(File file)
      Mappings:
      Namespace Name Mixin selector
      official a Lacj;a(Ljava/io/File;)Ljava/util/function/Supplier;
      intermediary method_14432 Lnet/minecraft/class_3279;method_14432(Ljava/io/File;)Ljava/util/function/Supplier;
      named createResourcePack Lnet/minecraft/resource/FileResourcePackProvider;createResourcePack(Ljava/io/File;)Ljava/util/function/Supplier;