Package net.minecraft.resource
Interface ResourcePack
- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
AbstractFileResourcePack,DefaultClientResourcePack,DefaultResourcePack,DirectoryResourcePack,Format3ResourcePack,Format4ResourcePack,ZipResourcePack
A resource pack, providing resources to resource managers.
They are single-use in the lifecycle of a lifecycled resource manager. A ResourcePackProfile is a persistent
representation of the resource packs, and can be used to recreate the packs
on demand.
- Mappings:
Namespace Name official agtintermediary net/minecraft/class_3262named net/minecraft/resource/ResourcePack
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()booleancontains(ResourceType type, Identifier id) findResources(ResourceType type, String namespace, String prefix, Predicate<Identifier> allowedPathPredicate) getName()getNamespaces(ResourceType type) open(ResourceType type, Identifier id) <T> TparseMetadata(ResourceMetadataReader<T> metaReader)
-
Field Details
-
METADATA_PATH_SUFFIX
- See Also:
- Mappings:
Namespace Name Mixin selector official cLagt;c:Ljava/lang/String;intermediary field_29780Lnet/minecraft/class_3262;field_29780:Ljava/lang/String;named METADATA_PATH_SUFFIXLnet/minecraft/resource/ResourcePack;METADATA_PATH_SUFFIX:Ljava/lang/String;
-
PACK_METADATA_NAME
- See Also:
- Mappings:
Namespace Name Mixin selector official dLagt;d:Ljava/lang/String;intermediary field_29781Lnet/minecraft/class_3262;field_29781:Ljava/lang/String;named PACK_METADATA_NAMELnet/minecraft/resource/ResourcePack;PACK_METADATA_NAME:Ljava/lang/String;
-
-
Method Details
-
openRoot
- Throws:
IOException- Mappings:
Namespace Name Mixin selector official bLagt;b(Ljava/lang/String;)Ljava/io/InputStream;intermediary method_14410Lnet/minecraft/class_3262;method_14410(Ljava/lang/String;)Ljava/io/InputStream;named openRootLnet/minecraft/resource/ResourcePack;openRoot(Ljava/lang/String;)Ljava/io/InputStream;
-
open
- Throws:
IOException- Mappings:
Namespace Name Mixin selector official aLagt;a(Lagu;Laaj;)Ljava/io/InputStream;intermediary method_14405Lnet/minecraft/class_3262;method_14405(Lnet/minecraft/class_3264;Lnet/minecraft/class_2960;)Ljava/io/InputStream;named openLnet/minecraft/resource/ResourcePack;open(Lnet/minecraft/resource/ResourceType;Lnet/minecraft/util/Identifier;)Ljava/io/InputStream;
-
findResources
Collection<Identifier> findResources(ResourceType type, String namespace, String prefix, Predicate<Identifier> allowedPathPredicate) - Mappings:
Namespace Name Mixin selector official aLagt;a(Lagu;Ljava/lang/String;Ljava/lang/String;Ljava/util/function/Predicate;)Ljava/util/Collection;intermediary method_14408Lnet/minecraft/class_3262;method_14408(Lnet/minecraft/class_3264;Ljava/lang/String;Ljava/lang/String;Ljava/util/function/Predicate;)Ljava/util/Collection;named findResourcesLnet/minecraft/resource/ResourcePack;findResources(Lnet/minecraft/resource/ResourceType;Ljava/lang/String;Ljava/lang/String;Ljava/util/function/Predicate;)Ljava/util/Collection;
-
contains
- Mappings:
Namespace Name Mixin selector official bLagt;b(Lagu;Laaj;)Zintermediary method_14411Lnet/minecraft/class_3262;method_14411(Lnet/minecraft/class_3264;Lnet/minecraft/class_2960;)Znamed containsLnet/minecraft/resource/ResourcePack;contains(Lnet/minecraft/resource/ResourceType;Lnet/minecraft/util/Identifier;)Z
-
getNamespaces
- Mappings:
Namespace Name Mixin selector official aLagt;a(Lagu;)Ljava/util/Set;intermediary method_14406Lnet/minecraft/class_3262;method_14406(Lnet/minecraft/class_3264;)Ljava/util/Set;named getNamespacesLnet/minecraft/resource/ResourcePack;getNamespaces(Lnet/minecraft/resource/ResourceType;)Ljava/util/Set;
-
parseMetadata
- Throws:
IOException- Mappings:
Namespace Name Mixin selector official aLagt;a(Lagx;)Ljava/lang/Object;intermediary method_14407Lnet/minecraft/class_3262;method_14407(Lnet/minecraft/class_3270;)Ljava/lang/Object;named parseMetadataLnet/minecraft/resource/ResourcePack;parseMetadata(Lnet/minecraft/resource/metadata/ResourceMetadataReader;)Ljava/lang/Object;
-
getName
String getName()- Mappings:
Namespace Name Mixin selector official aLagt;a()Ljava/lang/String;intermediary method_14409Lnet/minecraft/class_3262;method_14409()Ljava/lang/String;named getNameLnet/minecraft/resource/ResourcePack;getName()Ljava/lang/String;
-
close
void close()- Specified by:
closein interfaceAutoCloseable
-