Package net.minecraft.resource
Interface ResourcePack
- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
AbstractFileResourcePack
,DefaultResourcePack
,DirectoryResourcePack
,OverlayResourcePack
,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 asd
intermediary net/minecraft/class_3262
named net/minecraft/resource/ResourcePack
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
findResources
(ResourceType type, String namespace, String prefix, ResourcePack.ResultConsumer consumer) default String
getId()
getInfo()
default Optional
<VersionedIdentifier> getNamespaces
(ResourceType type) open
(ResourceType type, Identifier id) <T> T
parseMetadata
(ResourceMetadataReader<T> metaReader)
-
Field Details
-
METADATA_PATH_SUFFIX
- See Also:
- Mappings:
Namespace Name Mixin selector official a
Lasd;a:Ljava/lang/String;
intermediary field_29780
Lnet/minecraft/class_3262;field_29780:Ljava/lang/String;
named METADATA_PATH_SUFFIX
Lnet/minecraft/resource/ResourcePack;METADATA_PATH_SUFFIX:Ljava/lang/String;
-
PACK_METADATA_NAME
- See Also:
- Mappings:
Namespace Name Mixin selector official b
Lasd;b:Ljava/lang/String;
intermediary field_29781
Lnet/minecraft/class_3262;field_29781:Ljava/lang/String;
named PACK_METADATA_NAME
Lnet/minecraft/resource/ResourcePack;PACK_METADATA_NAME:Ljava/lang/String;
-
-
Method Details
-
openRoot
- Mappings:
Namespace Name Mixin selector official a
Lasd;a([Ljava/lang/String;)Latj;
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;
-
open
- Mappings:
Namespace Name Mixin selector official a
Lasd;a(Lasf;Lakh;)Latj;
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;
-
findResources
void findResources(ResourceType type, String namespace, String prefix, ResourcePack.ResultConsumer consumer) - Mappings:
Namespace Name Mixin selector official a
Lasd;a(Lasf;Ljava/lang/String;Ljava/lang/String;Lasd$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
-
getNamespaces
- Mappings:
Namespace Name Mixin selector official a
Lasd;a(Lasf;)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
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector official a
Lasd;a(Lasq;)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;
-
getInfo
ResourcePackInfo getInfo()- Mappings:
Namespace Name Mixin selector official a
Lasd;a()Lasc;
intermediary method_56926
Lnet/minecraft/class_3262;method_56926()Lnet/minecraft/class_9224;
named getInfo
Lnet/minecraft/resource/ResourcePack;getInfo()Lnet/minecraft/resource/ResourcePackInfo;
-
getId
- Mappings:
Namespace Name Mixin selector official b
Lasd;b()Ljava/lang/String;
intermediary method_14409
Lnet/minecraft/class_3262;method_14409()Ljava/lang/String;
named getId
Lnet/minecraft/resource/ResourcePack;getId()Ljava/lang/String;
-
getKnownPackInfo
- Mappings:
Namespace Name Mixin selector official c
Lasd;c()Ljava/util/Optional;
intermediary method_56929
Lnet/minecraft/class_3262;method_56929()Ljava/util/Optional;
named getKnownPackInfo
Lnet/minecraft/resource/ResourcePack;getKnownPackInfo()Ljava/util/Optional;
-
close
void close()- Specified by:
close
in interfaceAutoCloseable
-