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 official ake
intermediary net/minecraft/class_7678
named net/minecraft/resource/VanillaResourcePackProvider
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Identifier
private static final Logger
private final DefaultResourcePack
private final ResourceType
static final String
-
Constructor Summary
ConstructorDescriptionVanillaResourcePackProvider
(ResourceType type, DefaultResourcePack resourcePack, Identifier id) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract @Nullable ResourcePackProfile
create
(String name, ResourcePackProfile.PackFactory packFactory, Text displayName) protected abstract @Nullable ResourcePackProfile
createDefault
(ResourcePack pack) protected void
forEachProfile
(@Nullable Path namespacedPath, BiConsumer<String, Function<String, ResourcePackProfile>> consumer) protected void
forEachProfile
(BiConsumer<String, Function<String, ResourcePackProfile>> consumer) private void
forEachProfile
(Consumer<ResourcePackProfile> consumer) private static String
getFileName
(Path path) protected abstract Text
getProfileName
(String id) void
register
(Consumer<ResourcePackProfile> profileAdder) Register resource pack profiles created with thefactory
to theprofileAdder
.
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official b
Lake;b:Lorg/slf4j/Logger;
intermediary field_40040
Lnet/minecraft/class_7678;field_40040:Lorg/slf4j/Logger;
named LOGGER
Lnet/minecraft/resource/VanillaResourcePackProvider;LOGGER:Lorg/slf4j/Logger;
-
VANILLA_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector official a
Lake;a:Ljava/lang/String;
intermediary field_40039
Lnet/minecraft/class_7678;field_40039:Ljava/lang/String;
named VANILLA_KEY
Lnet/minecraft/resource/VanillaResourcePackProvider;VANILLA_KEY:Ljava/lang/String;
-
type
- Mappings:
Namespace Name Mixin selector official c
Lake;c:Lajm;
intermediary field_40041
Lnet/minecraft/class_7678;field_40041:Lnet/minecraft/class_3264;
named type
Lnet/minecraft/resource/VanillaResourcePackProvider;type:Lnet/minecraft/resource/ResourceType;
-
resourcePack
- Mappings:
Namespace Name Mixin selector official d
Lake;d:Lajo;
intermediary field_40042
Lnet/minecraft/class_7678;field_40042:Lnet/minecraft/class_3268;
named resourcePack
Lnet/minecraft/resource/VanillaResourcePackProvider;resourcePack:Lnet/minecraft/resource/DefaultResourcePack;
-
id
- Mappings:
Namespace Name Mixin selector official e
Lake;e:Lacq;
intermediary field_40043
Lnet/minecraft/class_7678;field_40043:Lnet/minecraft/class_2960;
named id
Lnet/minecraft/resource/VanillaResourcePackProvider;id:Lnet/minecraft/util/Identifier;
-
-
Constructor Details
-
VanillaResourcePackProvider
public VanillaResourcePackProvider(ResourceType type, DefaultResourcePack resourcePack, Identifier id) - Mappings:
Namespace Name Mixin selector official <init>
Lake;<init>(Lajm;Lajo;Lacq;)V
intermediary <init>
Lnet/minecraft/class_7678;<init>(Lnet/minecraft/class_3264;Lnet/minecraft/class_3268;Lnet/minecraft/class_2960;)V
named <init>
Lnet/minecraft/resource/VanillaResourcePackProvider;<init>(Lnet/minecraft/resource/ResourceType;Lnet/minecraft/resource/DefaultResourcePack;Lnet/minecraft/util/Identifier;)V
-
-
Method Details
-
register
Register resource pack profiles created with thefactory
to theprofileAdder
.- Specified by:
register
in interfaceResourcePackProvider
- 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
-
createDefault
- Mappings:
Namespace Name Mixin selector official a
Lake;a(Lajl;)Lakg;
intermediary method_45257
Lnet/minecraft/class_7678;method_45257(Lnet/minecraft/class_3262;)Lnet/minecraft/class_3288;
named createDefault
Lnet/minecraft/resource/VanillaResourcePackProvider;createDefault(Lnet/minecraft/resource/ResourcePack;)Lnet/minecraft/resource/ResourcePackProfile;
-
getProfileName
- Mappings:
Namespace Name Mixin selector official a
Lake;a(Ljava/lang/String;)Lsw;
intermediary method_45259
Lnet/minecraft/class_7678;method_45259(Ljava/lang/String;)Lnet/minecraft/class_2561;
named getProfileName
Lnet/minecraft/resource/VanillaResourcePackProvider;getProfileName(Ljava/lang/String;)Lnet/minecraft/text/Text;
-
getResourcePack
- Mappings:
Namespace Name Mixin selector official a
Lake;a()Lajo;
intermediary method_45256
Lnet/minecraft/class_7678;method_45256()Lnet/minecraft/class_3268;
named getResourcePack
Lnet/minecraft/resource/VanillaResourcePackProvider;getResourcePack()Lnet/minecraft/resource/DefaultResourcePack;
-
forEachProfile
- Mappings:
Namespace Name Mixin selector official b
Lake;b(Ljava/util/function/Consumer;)V
intermediary method_45267
Lnet/minecraft/class_7678;method_45267(Ljava/util/function/Consumer;)V
named forEachProfile
Lnet/minecraft/resource/VanillaResourcePackProvider;forEachProfile(Ljava/util/function/Consumer;)V
-
forEachProfile
- Mappings:
Namespace Name Mixin selector official a
Lake;a(Ljava/util/function/BiConsumer;)V
intermediary method_45263
Lnet/minecraft/class_7678;method_45263(Ljava/util/function/BiConsumer;)V
named forEachProfile
Lnet/minecraft/resource/VanillaResourcePackProvider;forEachProfile(Ljava/util/function/BiConsumer;)V
-
forEachProfile
protected void forEachProfile(@Nullable @Nullable Path namespacedPath, BiConsumer<String, Function<String, ResourcePackProfile>> consumer) - Mappings:
Namespace Name Mixin selector official a
Lake;a(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
named forEachProfile
Lnet/minecraft/resource/VanillaResourcePackProvider;forEachProfile(Ljava/nio/file/Path;Ljava/util/function/BiConsumer;)V
-
getFileName
- Mappings:
Namespace Name Mixin selector official a
Lake;a(Ljava/nio/file/Path;)Ljava/lang/String;
intermediary method_45261
Lnet/minecraft/class_7678;method_45261(Ljava/nio/file/Path;)Ljava/lang/String;
named getFileName
Lnet/minecraft/resource/VanillaResourcePackProvider;getFileName(Ljava/nio/file/Path;)Ljava/lang/String;
-
create
@Nullable protected abstract @Nullable ResourcePackProfile create(String name, ResourcePackProfile.PackFactory packFactory, Text displayName) - Mappings:
Namespace Name Mixin selector official a
Lake;a(Ljava/lang/String;Lakg$c;Lsw;)Lakg;
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;
named create
Lnet/minecraft/resource/VanillaResourcePackProvider;create(Ljava/lang/String;Lnet/minecraft/resource/ResourcePackProfile$PackFactory;Lnet/minecraft/text/Text;)Lnet/minecraft/resource/ResourcePackProfile;
-