Package net.minecraft.resource
Class VanillaResourcePackProvider
java.lang.Object
net.minecraft.resource.VanillaResourcePackProvider
- All Implemented Interfaces:
- ResourcePackProvider
- Direct Known Subclasses:
- DefaultClientResourcePackProvider,- VanillaDataPackProvider
- Mappings:
- Namespace - Name - named - net/minecraft/resource/VanillaResourcePackProvider- intermediary - net/minecraft/class_7678- official - atu
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final Identifierprivate static final Loggerprivate final DefaultResourcePackprivate final SymlinkFinderprivate final ResourceTypestatic final VersionedIdentifierstatic final String
- 
Constructor SummaryConstructorsConstructorDescriptionVanillaResourcePackProvider(ResourceType type, DefaultResourcePack resourcePack, Identifier id, SymlinkFinder symlinkFinder) 
- 
Method SummaryModifier and TypeMethodDescriptionprotected abstract @Nullable ResourcePackProfilecreate(String fileName, ResourcePackProfile.PackFactory packFactory, Text displayName) protected abstract @Nullable ResourcePackProfilecreateDefault(ResourcePack pack) protected static ResourcePackProfile.PackFactoryprotected voidforEachProfile(@Nullable Path namespacedPath, BiConsumer<String, Function<String, ResourcePackProfile>> consumer) protected voidforEachProfile(BiConsumer<String, Function<String, ResourcePackProfile>> consumer) private voidforEachProfile(Consumer<ResourcePackProfile> consumer) protected abstract TextgetDisplayName(String id) 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 - named - LOGGER- Lnet/minecraft/resource/VanillaResourcePackProvider;LOGGER:Lorg/slf4j/Logger;- intermediary - field_40040- Lnet/minecraft/class_7678;field_40040:Lorg/slf4j/Logger;- official - c- Latu;c:Lorg/slf4j/Logger;
 
- 
VANILLA_KEY- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - VANILLA_KEY- Lnet/minecraft/resource/VanillaResourcePackProvider;VANILLA_KEY:Ljava/lang/String;- intermediary - field_40039- Lnet/minecraft/class_7678;field_40039:Ljava/lang/String;- official - a- Latu;a:Ljava/lang/String;
 
- 
VANILLA_ID- Mappings:
- Namespace - Name - Mixin selector - named - VANILLA_ID- Lnet/minecraft/resource/VanillaResourcePackProvider;VANILLA_ID:Lnet/minecraft/registry/VersionedIdentifier;- intermediary - field_49033- Lnet/minecraft/class_7678;field_49033:Lnet/minecraft/class_9226;- official - b- Latu;b:Latw;
 
- 
type- Mappings:
- Namespace - Name - Mixin selector - named - type- Lnet/minecraft/resource/VanillaResourcePackProvider;type:Lnet/minecraft/resource/ResourceType;- intermediary - field_40041- Lnet/minecraft/class_7678;field_40041:Lnet/minecraft/class_3264;- official - d- Latu;d:Late;
 
- 
resourcePack- Mappings:
- Namespace - Name - Mixin selector - named - resourcePack- Lnet/minecraft/resource/VanillaResourcePackProvider;resourcePack:Lnet/minecraft/resource/DefaultResourcePack;- intermediary - field_40042- Lnet/minecraft/class_7678;field_40042:Lnet/minecraft/class_3268;- official - e- Latu;e:Latg;
 
- 
id- Mappings:
- Namespace - Name - Mixin selector - named - id- Lnet/minecraft/resource/VanillaResourcePackProvider;id:Lnet/minecraft/util/Identifier;- intermediary - field_40043- Lnet/minecraft/class_7678;field_40043:Lnet/minecraft/class_2960;- official - f- Latu;f:Lakv;
 
- 
symlinkFinder- Mappings:
- Namespace - Name - Mixin selector - named - symlinkFinder- Lnet/minecraft/resource/VanillaResourcePackProvider;symlinkFinder:Lnet/minecraft/util/path/SymlinkFinder;- intermediary - field_45052- Lnet/minecraft/class_7678;field_45052:Lnet/minecraft/class_8580;- official - g- Latu;g:Lfar;
 
 
- 
- 
Constructor Details- 
VanillaResourcePackProviderpublic VanillaResourcePackProvider(ResourceType type, DefaultResourcePack resourcePack, Identifier id, SymlinkFinder symlinkFinder) - Mappings:
- Namespace - Name - Mixin selector - named - <init>- Lnet/minecraft/resource/VanillaResourcePackProvider;<init>(Lnet/minecraft/resource/ResourceType;Lnet/minecraft/resource/DefaultResourcePack;Lnet/minecraft/util/Identifier;Lnet/minecraft/util/path/SymlinkFinder;)V- intermediary - <init>- Lnet/minecraft/class_7678;<init>(Lnet/minecraft/class_3264;Lnet/minecraft/class_3268;Lnet/minecraft/class_2960;Lnet/minecraft/class_8580;)V- official - <init>- Latu;<init>(Late;Latg;Lakv;Lfar;)V
 
 
- 
- 
Method Details- 
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 - named - register- Lnet/minecraft/resource/ResourcePackProvider;register(Ljava/util/function/Consumer;)V- intermediary - method_14453- Lnet/minecraft/class_3285;method_14453(Ljava/util/function/Consumer;)V- official - loadPacks- Lauc;loadPacks(Ljava/util/function/Consumer;)V
 
- 
createDefault- Mappings:
- Namespace - Name - Mixin selector - named - createDefault- Lnet/minecraft/resource/VanillaResourcePackProvider;createDefault(Lnet/minecraft/resource/ResourcePack;)Lnet/minecraft/resource/ResourcePackProfile;- intermediary - method_45257- Lnet/minecraft/class_7678;method_45257(Lnet/minecraft/class_3262;)Lnet/minecraft/class_3288;- official - a- Latu;a(Latc;)Latx;
 
- 
getDisplayName- Mappings:
- Namespace - Name - Mixin selector - named - getDisplayName- Lnet/minecraft/resource/VanillaResourcePackProvider;getDisplayName(Ljava/lang/String;)Lnet/minecraft/text/Text;- intermediary - method_45259- Lnet/minecraft/class_7678;method_45259(Ljava/lang/String;)Lnet/minecraft/class_2561;- official - a- Latu;a(Ljava/lang/String;)Lwp;
 
- 
getResourcePack- Mappings:
- Namespace - Name - Mixin selector - named - getResourcePack- Lnet/minecraft/resource/VanillaResourcePackProvider;getResourcePack()Lnet/minecraft/resource/DefaultResourcePack;- intermediary - method_45256- Lnet/minecraft/class_7678;method_45256()Lnet/minecraft/class_3268;- official - a- Latu;a()Latg;
 
- 
forEachProfile- Mappings:
- Namespace - Name - Mixin selector - named - forEachProfile- Lnet/minecraft/resource/VanillaResourcePackProvider;forEachProfile(Ljava/util/function/Consumer;)V- intermediary - method_45267- Lnet/minecraft/class_7678;method_45267(Ljava/util/function/Consumer;)V- official - a- Latu;a(Ljava/util/function/Consumer;)V
 
- 
forEachProfile- Mappings:
- Namespace - Name - Mixin selector - named - forEachProfile- Lnet/minecraft/resource/VanillaResourcePackProvider;forEachProfile(Ljava/util/function/BiConsumer;)V- intermediary - method_45263- Lnet/minecraft/class_7678;method_45263(Ljava/util/function/BiConsumer;)V- official - a- Latu;a(Ljava/util/function/BiConsumer;)V
 
- 
forEachProfileprotected void forEachProfile(@Nullable @Nullable Path namespacedPath, BiConsumer<String, Function<String, ResourcePackProfile>> consumer) - Mappings:
- Namespace - Name - Mixin selector - named - forEachProfile- Lnet/minecraft/resource/VanillaResourcePackProvider;forEachProfile(Ljava/nio/file/Path;Ljava/util/function/BiConsumer;)V- intermediary - method_45262- Lnet/minecraft/class_7678;method_45262(Ljava/nio/file/Path;Ljava/util/function/BiConsumer;)V- official - a- Latu;a(Ljava/nio/file/Path;Ljava/util/function/BiConsumer;)V
 
- 
getFileName- Mappings:
- Namespace - Name - Mixin selector - named - getFileName- Lnet/minecraft/resource/VanillaResourcePackProvider;getFileName(Ljava/nio/file/Path;)Ljava/lang/String;- intermediary - method_45261- Lnet/minecraft/class_7678;method_45261(Ljava/nio/file/Path;)Ljava/lang/String;- official - a- Latu;a(Ljava/nio/file/Path;)Ljava/lang/String;
 
- 
create@Nullable protected abstract @Nullable ResourcePackProfile create(String fileName, ResourcePackProfile.PackFactory packFactory, Text displayName) - Mappings:
- Namespace - Name - Mixin selector - named - create- Lnet/minecraft/resource/VanillaResourcePackProvider;create(Ljava/lang/String;Lnet/minecraft/resource/ResourcePackProfile$PackFactory;Lnet/minecraft/text/Text;)Lnet/minecraft/resource/ResourcePackProfile;- intermediary - method_45260- Lnet/minecraft/class_7678;method_45260(Ljava/lang/String;Lnet/minecraft/class_3288$class_7680;Lnet/minecraft/class_2561;)Lnet/minecraft/class_3288;- official - a- Latu;a(Ljava/lang/String;Latx$c;Lwp;)Latx;
 
- 
createPackFactory- Mappings:
- Namespace - Name - Mixin selector - named - createPackFactory- Lnet/minecraft/resource/VanillaResourcePackProvider;createPackFactory(Lnet/minecraft/resource/ResourcePack;)Lnet/minecraft/resource/ResourcePackProfile$PackFactory;- intermediary - method_52435- Lnet/minecraft/class_7678;method_52435(Lnet/minecraft/class_3262;)Lnet/minecraft/class_3288$class_7680;- official - b- Latu;b(Latc;)Latx$c;
 
 
-