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 atv
  • 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 Latv;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 Latv;b:Latc;
    • 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 Latv;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 Latv;d:Latd;
    • 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 Latv;e:Laub;
    • 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 Latv;f:Levi;
  • 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> Latv;<init>(Ljava/nio/file/Path;Latd;Laub;Levi;)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 Latv;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 Lauc;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 Latv;b(Ljava/nio/file/Path;)Lata;
    • 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 Latv;a(Ljava/nio/file/Path;Levi;Ljava/util/function/BiConsumer;)V