Package net.minecraft.resource
Class DefaultResourcePack
java.lang.Object
net.minecraft.resource.DefaultResourcePack
- All Implemented Interfaces:
AutoCloseable,ResourcePack
- Mappings:
Namespace Name named net/minecraft/resource/DefaultResourcePackintermediary net/minecraft/class_3268official asu
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.resource.ResourcePack
ResourcePack.ResultConsumer -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ResourcePackInfoprivate static final Loggerprivate final ResourceMetadataMapprivate final Map<ResourceType, List<Path>> Fields inherited from interface net.minecraft.resource.ResourcePack
METADATA_PATH_SUFFIX, PACK_METADATA_NAME -
Constructor Summary
ConstructorsConstructorDescriptionDefaultResourcePack(ResourcePackInfo info, ResourceMetadataMap metadata, Set<String> namespaces, List<Path> rootPaths, Map<ResourceType, List<Path>> namespacePaths) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()private static voidcollectIdentifiers(ResourcePack.ResultConsumer consumer, String namespace, Path root, List<String> prefixSegments) voidfindResources(ResourceType type, String namespace, String prefix, ResourcePack.ResultConsumer consumer) voidforEachNamespacedPath(ResourceType type, Identifier path, Consumer<Path> consumer) getInfo()getNamespaces(ResourceType type) open(ResourceType type, Identifier id) <T> TparseMetadata(ResourceMetadataReader<T> metaReader) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.resource.ResourcePack
getId, getKnownPackInfo
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGERLnet/minecraft/resource/DefaultResourcePack;LOGGER:Lorg/slf4j/Logger;intermediary field_14195Lnet/minecraft/class_3268;field_14195:Lorg/slf4j/Logger;official cLasu;c:Lorg/slf4j/Logger;
-
info
- Mappings:
Namespace Name Mixin selector named infoLnet/minecraft/resource/DefaultResourcePack;info:Lnet/minecraft/resource/ResourcePackInfo;intermediary field_49032Lnet/minecraft/class_3268;field_49032:Lnet/minecraft/class_9224;official dLasu;d:Lasp;
-
metadata
- Mappings:
Namespace Name Mixin selector named metadataLnet/minecraft/resource/DefaultResourcePack;metadata:Lnet/minecraft/resource/metadata/ResourceMetadataMap;intermediary field_26938Lnet/minecraft/class_3268;field_26938:Lnet/minecraft/class_7662;official eLasu;e:Lasi;
-
namespaces
- Mappings:
Namespace Name Mixin selector named namespacesLnet/minecraft/resource/DefaultResourcePack;namespaces:Ljava/util/Set;intermediary field_14193Lnet/minecraft/class_3268;field_14193:Ljava/util/Set;official fLasu;f:Ljava/util/Set;
-
rootPaths
- Mappings:
Namespace Name Mixin selector named rootPathsLnet/minecraft/resource/DefaultResourcePack;rootPaths:Ljava/util/List;intermediary field_40002Lnet/minecraft/class_3268;field_40002:Ljava/util/List;official gLasu;g:Ljava/util/List;
-
namespacePaths
- Mappings:
Namespace Name Mixin selector named namespacePathsLnet/minecraft/resource/DefaultResourcePack;namespacePaths:Ljava/util/Map;intermediary field_40003Lnet/minecraft/class_3268;field_40003:Ljava/util/Map;official hLasu;h:Ljava/util/Map;
-
-
Constructor Details
-
DefaultResourcePack
DefaultResourcePack(ResourcePackInfo info, ResourceMetadataMap metadata, Set<String> namespaces, List<Path> rootPaths, Map<ResourceType, List<Path>> namespacePaths) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/resource/DefaultResourcePack;<init>(Lnet/minecraft/resource/ResourcePackInfo;Lnet/minecraft/resource/metadata/ResourceMetadataMap;Ljava/util/Set;Ljava/util/List;Ljava/util/Map;)Vintermediary <init>Lnet/minecraft/class_3268;<init>(Lnet/minecraft/class_9224;Lnet/minecraft/class_7662;Ljava/util/Set;Ljava/util/List;Ljava/util/Map;)Vofficial <init>Lasu;<init>(Lasp;Lasi;Ljava/util/Set;Ljava/util/List;Ljava/util/Map;)V
-
-
Method Details
-
openRoot
- Specified by:
openRootin interfaceResourcePack- Mappings:
Namespace Name Mixin selector named openRootLnet/minecraft/resource/ResourcePack;openRoot([Ljava/lang/String;)Lnet/minecraft/resource/InputSupplier;intermediary method_14410Lnet/minecraft/class_3262;method_14410([Ljava/lang/String;)Lnet/minecraft/class_7367;official aLasq;a([Ljava/lang/String;)Latw;
-
forEachNamespacedPath
- Mappings:
Namespace Name Mixin selector named forEachNamespacedPathLnet/minecraft/resource/DefaultResourcePack;forEachNamespacedPath(Lnet/minecraft/resource/ResourceType;Lnet/minecraft/util/Identifier;Ljava/util/function/Consumer;)Vintermediary method_45192Lnet/minecraft/class_3268;method_45192(Lnet/minecraft/class_3264;Lnet/minecraft/class_2960;Ljava/util/function/Consumer;)Vofficial aLasu;a(Lass;Lakr;Ljava/util/function/Consumer;)V
-
findResources
public void findResources(ResourceType type, String namespace, String prefix, ResourcePack.ResultConsumer consumer) - Specified by:
findResourcesin interfaceResourcePack- Mappings:
Namespace Name Mixin selector named findResourcesLnet/minecraft/resource/ResourcePack;findResources(Lnet/minecraft/resource/ResourceType;Ljava/lang/String;Ljava/lang/String;Lnet/minecraft/resource/ResourcePack$ResultConsumer;)Vintermediary method_14408Lnet/minecraft/class_3262;method_14408(Lnet/minecraft/class_3264;Ljava/lang/String;Ljava/lang/String;Lnet/minecraft/class_3262$class_7664;)Vofficial aLasq;a(Lass;Ljava/lang/String;Ljava/lang/String;Lasq$a;)V
-
collectIdentifiers
private static void collectIdentifiers(ResourcePack.ResultConsumer consumer, String namespace, Path root, List<String> prefixSegments) - Mappings:
Namespace Name Mixin selector named collectIdentifiersLnet/minecraft/resource/DefaultResourcePack;collectIdentifiers(Lnet/minecraft/resource/ResourcePack$ResultConsumer;Ljava/lang/String;Ljava/nio/file/Path;Ljava/util/List;)Vintermediary method_14418Lnet/minecraft/class_3268;method_14418(Lnet/minecraft/class_3262$class_7664;Ljava/lang/String;Ljava/nio/file/Path;Ljava/util/List;)Vofficial aLasu;a(Lasq$a;Ljava/lang/String;Ljava/nio/file/Path;Ljava/util/List;)V
-
open
- Specified by:
openin interfaceResourcePack- Mappings:
Namespace Name Mixin selector named openLnet/minecraft/resource/ResourcePack;open(Lnet/minecraft/resource/ResourceType;Lnet/minecraft/util/Identifier;)Lnet/minecraft/resource/InputSupplier;intermediary method_14405Lnet/minecraft/class_3262;method_14405(Lnet/minecraft/class_3264;Lnet/minecraft/class_2960;)Lnet/minecraft/class_7367;official aLasq;a(Lass;Lakr;)Latw;
-
getNamespaces
- Specified by:
getNamespacesin interfaceResourcePack- Mappings:
Namespace Name Mixin selector named getNamespacesLnet/minecraft/resource/ResourcePack;getNamespaces(Lnet/minecraft/resource/ResourceType;)Ljava/util/Set;intermediary method_14406Lnet/minecraft/class_3262;method_14406(Lnet/minecraft/class_3264;)Ljava/util/Set;official aLasq;a(Lass;)Ljava/util/Set;
-
parseMetadata
- Specified by:
parseMetadatain interfaceResourcePack- Mappings:
Namespace Name Mixin selector named parseMetadataLnet/minecraft/resource/ResourcePack;parseMetadata(Lnet/minecraft/resource/metadata/ResourceMetadataReader;)Ljava/lang/Object;intermediary method_14407Lnet/minecraft/class_3262;method_14407(Lnet/minecraft/class_3270;)Ljava/lang/Object;official aLasq;a(Latd;)Ljava/lang/Object;
-
getInfo
- Specified by:
getInfoin interfaceResourcePack- Mappings:
Namespace Name Mixin selector named getInfoLnet/minecraft/resource/ResourcePack;getInfo()Lnet/minecraft/resource/ResourcePackInfo;intermediary method_56926Lnet/minecraft/class_3262;method_56926()Lnet/minecraft/class_9224;official aLasq;a()Lasp;
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceResourcePack
-
getFactory
- Mappings:
Namespace Name Mixin selector named getFactoryLnet/minecraft/resource/DefaultResourcePack;getFactory()Lnet/minecraft/resource/ResourceFactory;intermediary method_43032Lnet/minecraft/class_3268;method_43032()Lnet/minecraft/class_5912;official dLasu;d()Lauh;
-