Package net.minecraft.resource
Class FileResourcePackProvider
java.lang.Object
net.minecraft.resource.FileResourcePackProvider
- All Implemented Interfaces:
- ResourcePackProvider
- Mappings:
- Namespace - Name - official - akf- intermediary - net/minecraft/class_3279- named - net/minecraft/resource/FileResourcePackProvider
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate static final Loggerprivate final Pathprivate final ResourcePackSourceprivate final ResourceType
- 
Constructor SummaryConstructorsConstructorDescriptionFileResourcePackProvider(Path packsDir, ResourceType type, ResourcePackSource source) 
- 
Method SummaryModifier and TypeMethodDescriptionstatic voidforEachProfile(Path packsDir, boolean alwaysStable, BiConsumer<Path, ResourcePackProfile.PackFactory> consumer) getFactory(Path path, boolean alwaysStable) private static StringgetFileName(Path path) voidregister(Consumer<ResourcePackProfile> profileAdder) Register resource pack profiles created with thefactoryto theprofileAdder.
- 
Field Details- 
LOGGER- Mappings:
- Namespace - Name - Mixin selector - official - a- Lakf;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- Lakf;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- Lakf;c:Lajm;- 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- Lakf;d:Lakj;- 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>- Lakf;<init>(Ljava/nio/file/Path;Lajm;Lakj;)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- Lakf;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;
 
- 
registerRegister resource pack profiles created with thefactoryto theprofileAdder.- Specified by:
- registerin interface- ResourcePackProvider
- Parameters:
- profileAdder- the profile adder that accepts created resource pack profiles
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lakk;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
 
- 
forEachProfilepublic static void forEachProfile(Path packsDir, boolean alwaysStable, BiConsumer<Path, ResourcePackProfile.PackFactory> consumer) throws IOException- Throws:
- IOException
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lakf;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- Lakf;a(Ljava/nio/file/Path;Z)Lakg$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;
 
 
-