Class DefaultResourcePack

java.lang.Object
net.minecraft.resource.DefaultResourcePack
All Implemented Interfaces:
ResourcePack

@Environment(CLIENT)
public class DefaultResourcePack
extends Object
implements ResourcePack
Mappings:
Namespace Name
official bna
intermediary net/minecraft/class_1249
named net/minecraft/resource/DefaultResourcePack
  • Field Details

    • NAMESPACES

      public static final Set<String> NAMESPACES
      Mappings:
      Namespace Name Mixin selector
      official a Lbna;a:Ljava/util/Set;
      intermediary field_5226 Lnet/minecraft/class_1249;field_5226:Ljava/util/Set;
      named NAMESPACES Lnet/minecraft/resource/DefaultResourcePack;NAMESPACES:Ljava/util/Set;
    • assetsIndex

      private final Map<String,​File> assetsIndex
      Mappings:
      Namespace Name Mixin selector
      official b Lbna;b:Ljava/util/Map;
      intermediary field_5227 Lnet/minecraft/class_1249;field_5227:Ljava/util/Map;
      named assetsIndex Lnet/minecraft/resource/DefaultResourcePack;assetsIndex:Ljava/util/Map;
  • Constructor Details

    • DefaultResourcePack

      public DefaultResourcePack​(Map<String,​File> assetsIndex)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbna;<init>(Ljava/util/Map;)V
      intermediary <init> Lnet/minecraft/class_1249;<init>(Ljava/util/Map;)V
      named <init> Lnet/minecraft/resource/DefaultResourcePack;<init>(Ljava/util/Map;)V
  • Method Details

    • open

      public InputStream open​(Identifier id) throws IOException
      Specified by:
      open in interface ResourcePack
      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;
    • openFile

      public InputStream openFile​(Identifier id) throws FileNotFoundException
      Throws:
      FileNotFoundException
      Mappings:
      Namespace Name Mixin selector
      official c Lbna;c(Ljy;)Ljava/io/InputStream;
      intermediary method_4349 Lnet/minecraft/class_1249;method_4349(Lnet/minecraft/class_1605;)Ljava/io/InputStream;
      named openFile Lnet/minecraft/resource/DefaultResourcePack;openFile(Lnet/minecraft/util/Identifier;)Ljava/io/InputStream;
    • openClassLoader

      private InputStream openClassLoader​(Identifier id)
      Mappings:
      Namespace Name Mixin selector
      official d Lbna;d(Ljy;)Ljava/io/InputStream;
      intermediary method_4350 Lnet/minecraft/class_1249;method_4350(Lnet/minecraft/class_1605;)Ljava/io/InputStream;
      named openClassLoader Lnet/minecraft/resource/DefaultResourcePack;openClassLoader(Lnet/minecraft/util/Identifier;)Ljava/io/InputStream;
    • contains

      public boolean contains​(Identifier id)
      Specified by:
      contains in interface ResourcePack
      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

      public Set<String> getNamespaces()
      Specified by:
      getNamespaces in interface ResourcePack
      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

      public <T extends ResourceMetadataProvider> T parseMetadata​(MetadataSerializer serializer, String key) throws IOException
      Specified by:
      parseMetadata in interface ResourcePack
      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

      public BufferedImage getIcon() throws IOException
      Specified by:
      getIcon in interface ResourcePack
      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

      public String getName()
      Specified by:
      getName in interface ResourcePack
      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;