Package net.minecraft.resource
Class FileResourcePackProvider
java.lang.Object
net.minecraft.resource.FileResourcePackProvider
- All Implemented Interfaces:
ResourcePackProvider
- Mappings:
Namespace Name official adf
intermediary net/minecraft/class_3279
named net/minecraft/resource/FileResourcePackProvider
-
Field Summary
Modifier and TypeFieldDescriptionprivate final File
private static final FileFilter
private final ResourcePackSource
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate Supplier<ResourcePack>
createResourcePack
(File file) void
register
(Consumer<ResourcePackProfile> profileAdder, ResourcePackProfile.Factory factory) Register resource pack profiles created with thefactory
to theprofileAdder
.
-
Field Details
-
POSSIBLE_PACK
- Mappings:
Namespace Name Mixin selector official a
Ladf;a:Ljava/io/FileFilter;
intermediary field_14217
Lnet/minecraft/class_3279;field_14217:Ljava/io/FileFilter;
named POSSIBLE_PACK
Lnet/minecraft/resource/FileResourcePackProvider;POSSIBLE_PACK:Ljava/io/FileFilter;
-
packsFolder
- Mappings:
Namespace Name Mixin selector official b
Ladf;b:Ljava/io/File;
intermediary field_14218
Lnet/minecraft/class_3279;field_14218:Ljava/io/File;
named packsFolder
Lnet/minecraft/resource/FileResourcePackProvider;packsFolder:Ljava/io/File;
-
source
- Mappings:
Namespace Name Mixin selector official c
Ladf;c:Ladj;
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>
Ladf;<init>(Ljava/io/File;Ladj;)V
intermediary <init>
Lnet/minecraft/class_3279;<init>(Ljava/io/File;Lnet/minecraft/class_5352;)V
named <init>
Lnet/minecraft/resource/FileResourcePackProvider;<init>(Ljava/io/File;Lnet/minecraft/resource/ResourcePackSource;)V
-
-
Method Details
-
register
public void register(Consumer<ResourcePackProfile> profileAdder, ResourcePackProfile.Factory factory) Register resource pack profiles created with thefactory
to theprofileAdder
.- Specified by:
register
in interfaceResourcePackProvider
- Parameters:
profileAdder
- the profile adder that accepts created resource pack profilesfactory
- the factory that creates the resource pack profiles- See Also:
- Mappings:
Namespace Name Mixin selector official a
Ladk;a(Ljava/util/function/Consumer;Ladg$a;)V
intermediary method_14453
Lnet/minecraft/class_3285;method_14453(Ljava/util/function/Consumer;Lnet/minecraft/class_3288$class_5351;)V
named register
Lnet/minecraft/resource/ResourcePackProvider;register(Ljava/util/function/Consumer;Lnet/minecraft/resource/ResourcePackProfile$Factory;)V
-
createResourcePack
- Mappings:
Namespace Name Mixin selector official a
Ladf;a(Ljava/io/File;)Ljava/util/function/Supplier;
intermediary method_14432
Lnet/minecraft/class_3279;method_14432(Ljava/io/File;)Ljava/util/function/Supplier;
named createResourcePack
Lnet/minecraft/resource/FileResourcePackProvider;createResourcePack(Ljava/io/File;)Ljava/util/function/Supplier;
-