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_1645
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_6606 Lnet/minecraft/class_1645;field_6606: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_8108 Lnet/minecraft/class_1645;field_8108: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_1645;<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_5897 Lnet/minecraft/class_1655;method_5897(Lnet/minecraft/class_1653;)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_7032 Lnet/minecraft/class_1645;method_7032(Lnet/minecraft/class_1653;)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_5881 Lnet/minecraft/class_1645;method_5881(Lnet/minecraft/class_1653;)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_5900 Lnet/minecraft/class_1655;method_5900(Lnet/minecraft/class_1653;)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_5901 Lnet/minecraft/class_1655;method_5901()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_5898 Lnet/minecraft/class_1655;method_5898(Lnet/minecraft/class_1671;Ljava/lang/String;)Lnet/minecraft/class_1669;
      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_5896 Lnet/minecraft/class_1655;method_5896()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_5899 Lnet/minecraft/class_1655;method_5899()Ljava/lang/String;
      named getName Lnet/minecraft/resource/ResourcePack;getName()Ljava/lang/String;