Class FileResourcePackProvider

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

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

    • LOGGER

      static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      named LOGGER Lnet/minecraft/resource/FileResourcePackProvider;LOGGER:Lorg/slf4j/Logger;
      intermediary field_40044 Lnet/minecraft/class_3279;field_40044:Lorg/slf4j/Logger;
      official a Lavb;a:Lorg/slf4j/Logger;
    • POSITION

      private static final ResourcePackPosition POSITION
      Mappings:
      Namespace Name Mixin selector
      named POSITION Lnet/minecraft/resource/FileResourcePackProvider;POSITION:Lnet/minecraft/resource/ResourcePackPosition;
      intermediary field_49034 Lnet/minecraft/class_3279;field_49034:Lnet/minecraft/class_9225;
      official b Lavb;b:Lauh;
    • packsDir

      private final Path packsDir
      Mappings:
      Namespace Name Mixin selector
      named packsDir Lnet/minecraft/resource/FileResourcePackProvider;packsDir:Ljava/nio/file/Path;
      intermediary field_14218 Lnet/minecraft/class_3279;field_14218:Ljava/nio/file/Path;
      official c Lavb;c:Ljava/nio/file/Path;
    • type

      private final ResourceType type
      Mappings:
      Namespace Name Mixin selector
      named type Lnet/minecraft/resource/FileResourcePackProvider;type:Lnet/minecraft/resource/ResourceType;
      intermediary field_40045 Lnet/minecraft/class_3279;field_40045:Lnet/minecraft/class_3264;
      official d Lavb;d:Laui;
    • source

      private final ResourcePackSource source
      Mappings:
      Namespace Name Mixin selector
      named source Lnet/minecraft/resource/FileResourcePackProvider;source:Lnet/minecraft/resource/ResourcePackSource;
      intermediary field_25345 Lnet/minecraft/class_3279;field_25345:Lnet/minecraft/class_5352;
      official e Lavb;e:Lavh;
    • symlinkFinder

      private final SymlinkFinder symlinkFinder
      Mappings:
      Namespace Name Mixin selector
      named symlinkFinder Lnet/minecraft/resource/FileResourcePackProvider;symlinkFinder:Lnet/minecraft/util/path/SymlinkFinder;
      intermediary field_45054 Lnet/minecraft/class_3279;field_45054:Lnet/minecraft/class_8580;
      official f Lavb;f:Lfbn;
  • Constructor Details

    • FileResourcePackProvider

      public FileResourcePackProvider(Path packsDir, ResourceType type, ResourcePackSource source, SymlinkFinder symlinkFinder)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/resource/FileResourcePackProvider;<init>(Ljava/nio/file/Path;Lnet/minecraft/resource/ResourceType;Lnet/minecraft/resource/ResourcePackSource;Lnet/minecraft/util/path/SymlinkFinder;)V
      intermediary <init> Lnet/minecraft/class_3279;<init>(Ljava/nio/file/Path;Lnet/minecraft/class_3264;Lnet/minecraft/class_5352;Lnet/minecraft/class_8580;)V
      official <init> Lavb;<init>(Ljava/nio/file/Path;Laui;Lavh;Lfbn;)V
  • Method Details

    • getFileName

      private static String getFileName(Path path)
      Mappings:
      Namespace Name Mixin selector
      named getFileName Lnet/minecraft/resource/FileResourcePackProvider;getFileName(Ljava/nio/file/Path;)Ljava/lang/String;
      intermediary method_45273 Lnet/minecraft/class_3279;method_45273(Ljava/nio/file/Path;)Ljava/lang/String;
      official a Lavb;a(Ljava/nio/file/Path;)Ljava/lang/String;
    • 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 Lavi;loadPacks(Ljava/util/function/Consumer;)V
    • createPackInfo

      private ResourcePackInfo createPackInfo(Path path)
      Mappings:
      Namespace Name Mixin selector
      named createPackInfo Lnet/minecraft/resource/FileResourcePackProvider;createPackInfo(Ljava/nio/file/Path;)Lnet/minecraft/resource/ResourcePackInfo;
      intermediary method_56930 Lnet/minecraft/class_3279;method_56930(Ljava/nio/file/Path;)Lnet/minecraft/class_9224;
      official b Lavb;b(Ljava/nio/file/Path;)Lauf;
    • forEachProfile

      public static void forEachProfile(Path path, SymlinkFinder symlinkFinder, BiConsumer<Path,ResourcePackProfile.PackFactory> callback) throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      named forEachProfile Lnet/minecraft/resource/FileResourcePackProvider;forEachProfile(Ljava/nio/file/Path;Lnet/minecraft/util/path/SymlinkFinder;Ljava/util/function/BiConsumer;)V
      intermediary method_45271 Lnet/minecraft/class_3279;method_45271(Ljava/nio/file/Path;Lnet/minecraft/class_8580;Ljava/util/function/BiConsumer;)V
      official a Lavb;a(Ljava/nio/file/Path;Lfbn;Ljava/util/function/BiConsumer;)V