Package net.minecraft.resource
Class FileResourcePackProvider
java.lang.Object
net.minecraft.resource.FileResourcePackProvider
- All Implemented Interfaces:
ResourcePackProvider
- Mappings:
Namespace Name official ajm
intermediary net/minecraft/class_3279
named net/minecraft/resource/FileResourcePackProvider
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final Logger
private final Path
private final ResourcePackSource
private final ResourceType
-
Constructor Summary
ConstructorDescriptionFileResourcePackProvider
(Path packsDir, ResourceType type, ResourcePackSource source) -
Method Summary
Modifier and TypeMethodDescriptionstatic void
forEachProfile
(Path packsDir, boolean alwaysStable, BiConsumer<Path, ResourcePackProfile.PackFactory> consumer) getFactory
(Path path, boolean alwaysStable) 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
Lajm;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
Lajm;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
Lajm;c:Lait;
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
Lajm;d:Lajq;
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
- Mappings:
Namespace Name Mixin selector official <init>
Lajm;<init>(Ljava/nio/file/Path;Lait;Lajq;)V
intermediary <init>
Lnet/minecraft/class_3279;<init>(Ljava/nio/file/Path;Lnet/minecraft/class_3264;Lnet/minecraft/class_5352;)V
named <init>
Lnet/minecraft/resource/FileResourcePackProvider;<init>(Ljava/nio/file/Path;Lnet/minecraft/resource/ResourceType;Lnet/minecraft/resource/ResourcePackSource;)V
-
-
Method Details
-
getFileName
- Mappings:
Namespace Name Mixin selector official a
Lajm;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
Lajr;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 packsDir, boolean alwaysStable, BiConsumer<Path, ResourcePackProfile.PackFactory> consumer) throws IOException- Throws:
IOException
- Mappings:
Namespace Name Mixin selector official a
Lajm;a(Ljava/nio/file/Path;ZLjava/util/function/BiConsumer;)V
intermediary method_45271
Lnet/minecraft/class_3279;method_45271(Ljava/nio/file/Path;ZLjava/util/function/BiConsumer;)V
named forEachProfile
Lnet/minecraft/resource/FileResourcePackProvider;forEachProfile(Ljava/nio/file/Path;ZLjava/util/function/BiConsumer;)V
-
getFactory
- Mappings:
Namespace Name Mixin selector official a
Lajm;a(Ljava/nio/file/Path;Z)Lajn$c;
intermediary method_45269
Lnet/minecraft/class_3279;method_45269(Ljava/nio/file/Path;Z)Lnet/minecraft/class_3288$class_7680;
named getFactory
Lnet/minecraft/resource/FileResourcePackProvider;getFactory(Ljava/nio/file/Path;Z)Lnet/minecraft/resource/ResourcePackProfile$PackFactory;
-