Interface ResourcePack

All Known Implementing Classes:
AbstractFileResourcePack, DefaultResourcePack, DirectoryResourcePack, ZipResourcePack

@Environment(CLIENT)
public interface ResourcePack
Mappings:
Namespace Name
official bnk
intermediary net/minecraft/class_1260
named net/minecraft/resource/ResourcePack
  • Method Details

    • open

      InputStream open​(Identifier id) throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official a Lbnk;a(Ljy;)Ljava/io/InputStream;
      intermediary method_4369 Lnet/minecraft/class_1260;method_4369(Lnet/minecraft/class_1605;)Ljava/io/InputStream;
      named open Lnet/minecraft/resource/ResourcePack;open(Lnet/minecraft/util/Identifier;)Ljava/io/InputStream;
    • contains

      boolean contains​(Identifier id)
      Mappings:
      Namespace Name Mixin selector
      official b Lbnk;b(Ljy;)Z
      intermediary method_4371 Lnet/minecraft/class_1260;method_4371(Lnet/minecraft/class_1605;)Z
      named contains Lnet/minecraft/resource/ResourcePack;contains(Lnet/minecraft/util/Identifier;)Z
    • getNamespaces

      Set<String> getNamespaces()
      Mappings:
      Namespace Name Mixin selector
      official c Lbnk;c()Ljava/util/Set;
      intermediary method_4372 Lnet/minecraft/class_1260;method_4372()Ljava/util/Set;
      named getNamespaces Lnet/minecraft/resource/ResourcePack;getNamespaces()Ljava/util/Set;
    • parseMetadata

      <T extends ResourceMetadataProvider> T parseMetadata​(MetadataSerializer serializer, String key) throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official a Lbnk;a(Lbny;Ljava/lang/String;)Lbnw;
      intermediary method_4368 Lnet/minecraft/class_1260;method_4368(Lnet/minecraft/class_1275;Ljava/lang/String;)Lnet/minecraft/class_1273;
      named parseMetadata Lnet/minecraft/resource/ResourcePack;parseMetadata(Lnet/minecraft/util/MetadataSerializer;Ljava/lang/String;)Lnet/minecraft/client/resource/ResourceMetadataProvider;
    • getIcon

      BufferedImage getIcon() throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official a Lbnk;a()Ljava/awt/image/BufferedImage;
      intermediary method_4367 Lnet/minecraft/class_1260;method_4367()Ljava/awt/image/BufferedImage;
      named getIcon Lnet/minecraft/resource/ResourcePack;getIcon()Ljava/awt/image/BufferedImage;
    • getName

      String getName()
      Mappings:
      Namespace Name Mixin selector
      official b Lbnk;b()Ljava/lang/String;
      intermediary method_4370 Lnet/minecraft/class_1260;method_4370()Ljava/lang/String;
      named getName Lnet/minecraft/resource/ResourcePack;getName()Ljava/lang/String;