Package net.minecraft.resource
Class DefaultResourcePack
java.lang.Object
net.minecraft.resource.DefaultResourcePack
- All Implemented Interfaces:
AutoCloseable
,ResourcePack
- Mappings:
Namespace Name official ajy
intermediary net/minecraft/class_3268
named net/minecraft/resource/DefaultResourcePack
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.resource.ResourcePack
ResourcePack.ResultConsumer
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final Logger
private final ResourceMetadataMap
private final Map<ResourceType,
List<Path>> Fields inherited from interface net.minecraft.resource.ResourcePack
METADATA_PATH_SUFFIX, PACK_METADATA_NAME
-
Constructor Summary
ConstructorDescriptionDefaultResourcePack
(ResourceMetadataMap metadata, Set<String> namespaces, List<Path> rootPaths, Map<ResourceType, List<Path>> namespacePaths) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
private static void
collectIdentifiers
(ResourcePack.ResultConsumer consumer, String namespace, Path root, List<String> prefixSegments) void
findResources
(ResourceType type, String namespace, String prefix, ResourcePack.ResultConsumer consumer) void
forEachNamespacedPath
(ResourceType type, Identifier path, Consumer<Path> consumer) getName()
getNamespaces
(ResourceType type) boolean
Returns whether the dynamic registry entries from this pack are always "stable"/not experimental.open
(ResourceType type, Identifier id) <T> T
parseMetadata
(ResourceMetadataReader<T> metaReader)
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official a
Lajy;a:Lorg/slf4j/Logger;
intermediary field_14195
Lnet/minecraft/class_3268;field_14195:Lorg/slf4j/Logger;
named LOGGER
Lnet/minecraft/resource/DefaultResourcePack;LOGGER:Lorg/slf4j/Logger;
-
metadata
- Mappings:
Namespace Name Mixin selector official d
Lajy;d:Lajs;
intermediary field_26938
Lnet/minecraft/class_3268;field_26938:Lnet/minecraft/class_7662;
named metadata
Lnet/minecraft/resource/DefaultResourcePack;metadata:Lnet/minecraft/resource/metadata/ResourceMetadataMap;
-
namespaces
- Mappings:
Namespace Name Mixin selector official e
Lajy;e:Ljava/util/Set;
intermediary field_14193
Lnet/minecraft/class_3268;field_14193:Ljava/util/Set;
named namespaces
Lnet/minecraft/resource/DefaultResourcePack;namespaces:Ljava/util/Set;
-
rootPaths
- Mappings:
Namespace Name Mixin selector official f
Lajy;f:Ljava/util/List;
intermediary field_40002
Lnet/minecraft/class_3268;field_40002:Ljava/util/List;
named rootPaths
Lnet/minecraft/resource/DefaultResourcePack;rootPaths:Ljava/util/List;
-
namespacePaths
- Mappings:
Namespace Name Mixin selector official g
Lajy;g:Ljava/util/Map;
intermediary field_40003
Lnet/minecraft/class_3268;field_40003:Ljava/util/Map;
named namespacePaths
Lnet/minecraft/resource/DefaultResourcePack;namespacePaths:Ljava/util/Map;
-
-
Constructor Details
-
DefaultResourcePack
DefaultResourcePack(ResourceMetadataMap metadata, Set<String> namespaces, List<Path> rootPaths, Map<ResourceType, List<Path>> namespacePaths) - Mappings:
Namespace Name Mixin selector official <init>
Lajy;<init>(Lajs;Ljava/util/Set;Ljava/util/List;Ljava/util/Map;)V
intermediary <init>
Lnet/minecraft/class_3268;<init>(Lnet/minecraft/class_7662;Ljava/util/Set;Ljava/util/List;Ljava/util/Map;)V
named <init>
Lnet/minecraft/resource/DefaultResourcePack;<init>(Lnet/minecraft/resource/metadata/ResourceMetadataMap;Ljava/util/Set;Ljava/util/List;Ljava/util/Map;)V
-
-
Method Details
-
openRoot
- Specified by:
openRoot
in interfaceResourcePack
- Mappings:
Namespace Name Mixin selector official a
Lajv;a([Ljava/lang/String;)Lakz;
intermediary method_14410
Lnet/minecraft/class_3262;method_14410([Ljava/lang/String;)Lnet/minecraft/class_7367;
named openRoot
Lnet/minecraft/resource/ResourcePack;openRoot([Ljava/lang/String;)Lnet/minecraft/resource/InputSupplier;
-
forEachNamespacedPath
- Mappings:
Namespace Name Mixin selector official a
Lajy;a(Lajw;Ladd;Ljava/util/function/Consumer;)V
intermediary method_45192
Lnet/minecraft/class_3268;method_45192(Lnet/minecraft/class_3264;Lnet/minecraft/class_2960;Ljava/util/function/Consumer;)V
named forEachNamespacedPath
Lnet/minecraft/resource/DefaultResourcePack;forEachNamespacedPath(Lnet/minecraft/resource/ResourceType;Lnet/minecraft/util/Identifier;Ljava/util/function/Consumer;)V
-
findResources
public void findResources(ResourceType type, String namespace, String prefix, ResourcePack.ResultConsumer consumer) - Specified by:
findResources
in interfaceResourcePack
- Mappings:
Namespace Name Mixin selector official a
Lajv;a(Lajw;Ljava/lang/String;Ljava/lang/String;Lajv$a;)V
intermediary method_14408
Lnet/minecraft/class_3262;method_14408(Lnet/minecraft/class_3264;Ljava/lang/String;Ljava/lang/String;Lnet/minecraft/class_3262$class_7664;)V
named findResources
Lnet/minecraft/resource/ResourcePack;findResources(Lnet/minecraft/resource/ResourceType;Ljava/lang/String;Ljava/lang/String;Lnet/minecraft/resource/ResourcePack$ResultConsumer;)V
-
collectIdentifiers
private static void collectIdentifiers(ResourcePack.ResultConsumer consumer, String namespace, Path root, List<String> prefixSegments) - Mappings:
Namespace Name Mixin selector official a
Lajy;a(Lajv$a;Ljava/lang/String;Ljava/nio/file/Path;Ljava/util/List;)V
intermediary method_14418
Lnet/minecraft/class_3268;method_14418(Lnet/minecraft/class_3262$class_7664;Ljava/lang/String;Ljava/nio/file/Path;Ljava/util/List;)V
named collectIdentifiers
Lnet/minecraft/resource/DefaultResourcePack;collectIdentifiers(Lnet/minecraft/resource/ResourcePack$ResultConsumer;Ljava/lang/String;Ljava/nio/file/Path;Ljava/util/List;)V
-
open
- Specified by:
open
in interfaceResourcePack
- Mappings:
Namespace Name Mixin selector official a
Lajv;a(Lajw;Ladd;)Lakz;
intermediary method_14405
Lnet/minecraft/class_3262;method_14405(Lnet/minecraft/class_3264;Lnet/minecraft/class_2960;)Lnet/minecraft/class_7367;
named open
Lnet/minecraft/resource/ResourcePack;open(Lnet/minecraft/resource/ResourceType;Lnet/minecraft/util/Identifier;)Lnet/minecraft/resource/InputSupplier;
-
getNamespaces
- Specified by:
getNamespaces
in interfaceResourcePack
- Mappings:
Namespace Name Mixin selector official a
Lajv;a(Lajw;)Ljava/util/Set;
intermediary method_14406
Lnet/minecraft/class_3262;method_14406(Lnet/minecraft/class_3264;)Ljava/util/Set;
named getNamespaces
Lnet/minecraft/resource/ResourcePack;getNamespaces(Lnet/minecraft/resource/ResourceType;)Ljava/util/Set;
-
parseMetadata
- Specified by:
parseMetadata
in interfaceResourcePack
- Mappings:
Namespace Name Mixin selector official a
Lajv;a(Lakh;)Ljava/lang/Object;
intermediary method_14407
Lnet/minecraft/class_3262;method_14407(Lnet/minecraft/class_3270;)Ljava/lang/Object;
named parseMetadata
Lnet/minecraft/resource/ResourcePack;parseMetadata(Lnet/minecraft/resource/metadata/ResourceMetadataReader;)Ljava/lang/Object;
-
getName
- Specified by:
getName
in interfaceResourcePack
- Mappings:
Namespace Name Mixin selector official a
Lajv;a()Ljava/lang/String;
intermediary method_14409
Lnet/minecraft/class_3262;method_14409()Ljava/lang/String;
named getName
Lnet/minecraft/resource/ResourcePack;getName()Ljava/lang/String;
-
isAlwaysStable
public boolean isAlwaysStable()Returns whether the dynamic registry entries from this pack are always "stable"/not experimental.- Specified by:
isAlwaysStable
in interfaceResourcePack
- Returns:
- whether the dynamic registry entries from this pack are always "stable"/not experimental
- Mappings:
Namespace Name Mixin selector official b
Lajv;b()Z
intermediary method_45178
Lnet/minecraft/class_3262;method_45178()Z
named isAlwaysStable
Lnet/minecraft/resource/ResourcePack;isAlwaysStable()Z
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceResourcePack
-
getFactory
- Mappings:
Namespace Name Mixin selector official c
Lajy;c()Lalk;
intermediary method_43032
Lnet/minecraft/class_3268;method_43032()Lnet/minecraft/class_5912;
named getFactory
Lnet/minecraft/resource/DefaultResourcePack;getFactory()Lnet/minecraft/resource/ResourceFactory;
-