Package net.minecraft.resource
Class FileResourcePackProvider
java.lang.Object
net.minecraft.resource.FileResourcePackProvider
- All Implemented Interfaces:
ResourcePackProvider
- Mappings:
Namespace Name official akfintermediary net/minecraft/class_3279named net/minecraft/resource/FileResourcePackProvider
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Loggerprivate final Pathprivate final ResourcePackSourceprivate final ResourceType -
Constructor Summary
ConstructorsConstructorDescriptionFileResourcePackProvider(Path packsDir, ResourceType type, ResourcePackSource source) -
Method Summary
Modifier 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 aLakf;a:Lorg/slf4j/Logger;intermediary field_40044Lnet/minecraft/class_3279;field_40044:Lorg/slf4j/Logger;named LOGGERLnet/minecraft/resource/FileResourcePackProvider;LOGGER:Lorg/slf4j/Logger;
-
packsDir
- Mappings:
Namespace Name Mixin selector official bLakf;b:Ljava/nio/file/Path;intermediary field_14218Lnet/minecraft/class_3279;field_14218:Ljava/nio/file/Path;named packsDirLnet/minecraft/resource/FileResourcePackProvider;packsDir:Ljava/nio/file/Path;
-
type
- Mappings:
Namespace Name Mixin selector official cLakf;c:Lajm;intermediary field_40045Lnet/minecraft/class_3279;field_40045:Lnet/minecraft/class_3264;named typeLnet/minecraft/resource/FileResourcePackProvider;type:Lnet/minecraft/resource/ResourceType;
-
source
- Mappings:
Namespace Name Mixin selector official dLakf;d:Lakj;intermediary field_25345Lnet/minecraft/class_3279;field_25345:Lnet/minecraft/class_5352;named sourceLnet/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;)Vintermediary <init>Lnet/minecraft/class_3279;<init>(Ljava/nio/file/Path;Lnet/minecraft/class_3264;Lnet/minecraft/class_5352;)Vnamed <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 aLakf;a(Ljava/nio/file/Path;)Ljava/lang/String;intermediary method_45273Lnet/minecraft/class_3279;method_45273(Ljava/nio/file/Path;)Ljava/lang/String;named getFileNameLnet/minecraft/resource/FileResourcePackProvider;getFileName(Ljava/nio/file/Path;)Ljava/lang/String;
-
register
Register resource pack profiles created with thefactoryto theprofileAdder.- Specified by:
registerin interfaceResourcePackProvider- Parameters:
profileAdder- the profile adder that accepts created resource pack profiles- See Also:
- Mappings:
Namespace Name Mixin selector official aLakk;a(Ljava/util/function/Consumer;)Vintermediary method_14453Lnet/minecraft/class_3285;method_14453(Ljava/util/function/Consumer;)Vnamed registerLnet/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 aLakf;a(Ljava/nio/file/Path;ZLjava/util/function/BiConsumer;)Vintermediary method_45271Lnet/minecraft/class_3279;method_45271(Ljava/nio/file/Path;ZLjava/util/function/BiConsumer;)Vnamed forEachProfileLnet/minecraft/resource/FileResourcePackProvider;forEachProfile(Ljava/nio/file/Path;ZLjava/util/function/BiConsumer;)V
-
getFactory
- Mappings:
Namespace Name Mixin selector official aLakf;a(Ljava/nio/file/Path;Z)Lakg$c;intermediary method_45269Lnet/minecraft/class_3279;method_45269(Ljava/nio/file/Path;Z)Lnet/minecraft/class_3288$class_7680;named getFactoryLnet/minecraft/resource/FileResourcePackProvider;getFactory(Ljava/nio/file/Path;Z)Lnet/minecraft/resource/ResourcePackProfile$PackFactory;
-