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 bvu
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 Lbvu;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;
    • field_13654

      private final AssetsIndex field_13654
      Mappings:
      Namespace Name Mixin selector
      official b Lbvu;b:Lbvs;
      intermediary field_13654 Lnet/minecraft/class_1645;field_13654:Lnet/minecraft/class_1883;
      named field_13654 Lnet/minecraft/resource/DefaultResourcePack;field_13654:Lnet/minecraft/client/resource/AssetsIndex;
  • Constructor Details

    • DefaultResourcePack

      public DefaultResourcePack(AssetsIndex assetsIndex)
  • 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 Lbwf;a(Lkl;)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

      Throws:
      FileNotFoundException
      Mappings:
      Namespace Name Mixin selector
      official c Lbvu;c(Lkl;)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 Lbvu;d(Lkl;)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 Lbwf;b(Lkl;)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 Lbwf;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 Lbwf;a(Lbwt;Ljava/lang/String;)Lbwr;
      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 Lbwf;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 Lbwf;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;