Package net.minecraft.resource
Class FileResourcePackProvider
java.lang.Object
net.minecraft.resource.FileResourcePackProvider
- All Implemented Interfaces:
ResourcePackProvider
- Mappings:
Namespace Name official ahv
intermediary net/minecraft/class_3279
named net/minecraft/resource/FileResourcePackProvider
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final File
private static final FileFilter
private final ResourcePackSource
-
Constructor Summary
Constructors -
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
Lahv;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
Lahv;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
Lahv;c:Lahz;
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>
Lahv;<init>(Ljava/io/File;Lahz;)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
Laia;a(Ljava/util/function/Consumer;Lahw$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
Lahv;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;
-