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 named net/minecraft/resource/ResourcePack
intermediary net/minecraft/class_3262
official asp
-
Nested Class Summary
-
Field Summary
-
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 named METADATA_PATH_SUFFIX
Lnet/minecraft/resource/ResourcePack;METADATA_PATH_SUFFIX:Ljava/lang/String;
intermediary field_29780
Lnet/minecraft/class_3262;field_29780:Ljava/lang/String;
official a
Lasp;a:Ljava/lang/String;
-
PACK_METADATA_NAME
- See Also:
- Mappings:
Namespace Name Mixin selector named PACK_METADATA_NAME
Lnet/minecraft/resource/ResourcePack;PACK_METADATA_NAME:Ljava/lang/String;
intermediary field_29781
Lnet/minecraft/class_3262;field_29781:Ljava/lang/String;
official b
Lasp;b:Ljava/lang/String;
-
-
Method Details
-
openRoot
- Mappings:
Namespace Name Mixin selector named openRoot
Lnet/minecraft/resource/ResourcePack;openRoot([Ljava/lang/String;)Lnet/minecraft/resource/InputSupplier;
intermediary method_14410
Lnet/minecraft/class_3262;method_14410([Ljava/lang/String;)Lnet/minecraft/class_7367;
official a
Lasp;a([Ljava/lang/String;)Latv;
-
open
- Mappings:
Namespace Name Mixin selector named open
Lnet/minecraft/resource/ResourcePack;open(Lnet/minecraft/resource/ResourceType;Lnet/minecraft/util/Identifier;)Lnet/minecraft/resource/InputSupplier;
intermediary method_14405
Lnet/minecraft/class_3262;method_14405(Lnet/minecraft/class_3264;Lnet/minecraft/class_2960;)Lnet/minecraft/class_7367;
official a
Lasp;a(Lasr;Lakq;)Latv;
-
findResources
void findResources(ResourceType type, String namespace, String prefix, ResourcePack.ResultConsumer consumer) - Mappings:
Namespace Name Mixin selector named findResources
Lnet/minecraft/resource/ResourcePack;findResources(Lnet/minecraft/resource/ResourceType;Ljava/lang/String;Ljava/lang/String;Lnet/minecraft/resource/ResourcePack$ResultConsumer;)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
official a
Lasp;a(Lasr;Ljava/lang/String;Ljava/lang/String;Lasp$a;)V
-
getNamespaces
- Mappings:
Namespace Name Mixin selector named getNamespaces
Lnet/minecraft/resource/ResourcePack;getNamespaces(Lnet/minecraft/resource/ResourceType;)Ljava/util/Set;
intermediary method_14406
Lnet/minecraft/class_3262;method_14406(Lnet/minecraft/class_3264;)Ljava/util/Set;
official a
Lasp;a(Lasr;)Ljava/util/Set;
-
parseMetadata
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector named parseMetadata
Lnet/minecraft/resource/ResourcePack;parseMetadata(Lnet/minecraft/resource/metadata/ResourceMetadataReader;)Ljava/lang/Object;
intermediary method_14407
Lnet/minecraft/class_3262;method_14407(Lnet/minecraft/class_3270;)Ljava/lang/Object;
official a
Lasp;a(Latc;)Ljava/lang/Object;
-
getInfo
ResourcePackInfo getInfo()- Mappings:
Namespace Name Mixin selector named getInfo
Lnet/minecraft/resource/ResourcePack;getInfo()Lnet/minecraft/resource/ResourcePackInfo;
intermediary method_56926
Lnet/minecraft/class_3262;method_56926()Lnet/minecraft/class_9224;
official a
Lasp;a()Laso;
-
getId
- Mappings:
Namespace Name Mixin selector named getId
Lnet/minecraft/resource/ResourcePack;getId()Ljava/lang/String;
intermediary method_14409
Lnet/minecraft/class_3262;method_14409()Ljava/lang/String;
official b
Lasp;b()Ljava/lang/String;
-
getKnownPackInfo
- Mappings:
Namespace Name Mixin selector named getKnownPackInfo
Lnet/minecraft/resource/ResourcePack;getKnownPackInfo()Ljava/util/Optional;
intermediary method_56929
Lnet/minecraft/class_3262;method_56929()Ljava/util/Optional;
official c
Lasp;c()Ljava/util/Optional;
-
close
void close()- Specified by:
close
in interfaceAutoCloseable
-