Package net.minecraft.resource
Class FileResourcePackProvider
java.lang.Object
net.minecraft.resource.FileResourcePackProvider
- All Implemented Interfaces:
ResourcePackProvider
- Mappings:
Namespace Name official ana
intermediary net/minecraft/class_3279
named net/minecraft/resource/FileResourcePackProvider
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescription(package private) static final Logger
private final Path
private final ResourcePackSource
private final SymlinkFinder
private final ResourceType
-
Constructor Summary
ConstructorDescriptionFileResourcePackProvider
(Path packsDir, ResourceType type, ResourcePackSource source, SymlinkFinder symlinkFinder) -
Method Summary
Modifier and TypeMethodDescriptionstatic void
forEachProfile
(Path path, SymlinkFinder symlinkFinder, boolean alwaysStable, BiConsumer<Path, ResourcePackProfile.PackFactory> consumer) private static String
getFileName
(Path path) void
register
(Consumer<ResourcePackProfile> profileAdder) Register resource pack profiles created with thefactory
to theprofileAdder
.
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official a
Lana;a:Lorg/slf4j/Logger;
intermediary field_40044
Lnet/minecraft/class_3279;field_40044:Lorg/slf4j/Logger;
named LOGGER
Lnet/minecraft/resource/FileResourcePackProvider;LOGGER:Lorg/slf4j/Logger;
-
packsDir
- Mappings:
Namespace Name Mixin selector official b
Lana;b:Ljava/nio/file/Path;
intermediary field_14218
Lnet/minecraft/class_3279;field_14218:Ljava/nio/file/Path;
named packsDir
Lnet/minecraft/resource/FileResourcePackProvider;packsDir:Ljava/nio/file/Path;
-
type
- Mappings:
Namespace Name Mixin selector official c
Lana;c:Lami;
intermediary field_40045
Lnet/minecraft/class_3279;field_40045:Lnet/minecraft/class_3264;
named type
Lnet/minecraft/resource/FileResourcePackProvider;type:Lnet/minecraft/resource/ResourceType;
-
source
- Mappings:
Namespace Name Mixin selector official d
Lana;d:Lanf;
intermediary field_25345
Lnet/minecraft/class_3279;field_25345:Lnet/minecraft/class_5352;
named source
Lnet/minecraft/resource/FileResourcePackProvider;source:Lnet/minecraft/resource/ResourcePackSource;
-
symlinkFinder
- Mappings:
Namespace Name Mixin selector official e
Lana;e:Lehd;
intermediary field_45054
Lnet/minecraft/class_3279;field_45054:Lnet/minecraft/class_8580;
named symlinkFinder
Lnet/minecraft/resource/FileResourcePackProvider;symlinkFinder:Lnet/minecraft/util/path/SymlinkFinder;
-
-
Constructor Details
-
FileResourcePackProvider
public FileResourcePackProvider(Path packsDir, ResourceType type, ResourcePackSource source, SymlinkFinder symlinkFinder) - Mappings:
Namespace Name Mixin selector official <init>
Lana;<init>(Ljava/nio/file/Path;Lami;Lanf;Lehd;)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
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
-
-
Method Details
-
getFileName
- Mappings:
Namespace Name Mixin selector official a
Lana;a(Ljava/nio/file/Path;)Ljava/lang/String;
intermediary method_45273
Lnet/minecraft/class_3279;method_45273(Ljava/nio/file/Path;)Ljava/lang/String;
named getFileName
Lnet/minecraft/resource/FileResourcePackProvider;getFileName(Ljava/nio/file/Path;)Ljava/lang/String;
-
register
Register resource pack profiles created with thefactory
to theprofileAdder
.- Specified by:
register
in interfaceResourcePackProvider
- Parameters:
profileAdder
- the profile adder that accepts created resource pack profiles- See Also:
- Mappings:
Namespace Name Mixin selector official a
Lang;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
-
forEachProfile
public static void forEachProfile(Path path, SymlinkFinder symlinkFinder, boolean alwaysStable, BiConsumer<Path, ResourcePackProfile.PackFactory> consumer) throws IOException- Throws:
IOException
- Mappings:
Namespace Name Mixin selector official a
Lana;a(Ljava/nio/file/Path;Lehd;ZLjava/util/function/BiConsumer;)V
intermediary method_45271
Lnet/minecraft/class_3279;method_45271(Ljava/nio/file/Path;Lnet/minecraft/class_8580;ZLjava/util/function/BiConsumer;)V
named forEachProfile
Lnet/minecraft/resource/FileResourcePackProvider;forEachProfile(Ljava/nio/file/Path;Lnet/minecraft/util/path/SymlinkFinder;ZLjava/util/function/BiConsumer;)V
-