Interface ResourcePack

All Superinterfaces:
AutoCloseable
All Known Implementing Classes:
AbstractFileResourcePack, DefaultResourcePack, DirectoryResourcePack, OverlayResourcePack, ZipResourcePack

public interface ResourcePack extends AutoCloseable
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 asq
  • Field Details

    • METADATA_PATH_SUFFIX

      static final String 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 Lasq;a:Ljava/lang/String;
    • PACK_METADATA_NAME

      static final 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 Lasq;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 Lasq;a([Ljava/lang/String;)Latw;
    • 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 Lasq;a(Lass;Lakr;)Latw;
    • 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 Lasq;a(Lass;Ljava/lang/String;Ljava/lang/String;Lasq$a;)V
    • getNamespaces

      Set<String> getNamespaces(ResourceType type)
      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 Lasq;a(Lass;)Ljava/util/Set;
    • parseMetadata

      @Nullable <T> T parseMetadata(ResourceMetadataReader<T> metaReader) throws IOException
      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 Lasq;a(Latd;)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 Lasq;a()Lasp;
    • getId

      default String 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 Lasq;b()Ljava/lang/String;
    • getKnownPackInfo

      default Optional<VersionedIdentifier> 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 Lasq;c()Ljava/util/Optional;
    • close

      void close()
      Specified by:
      close in interface AutoCloseable