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 cvb
intermediary net/minecraft/class_1645
named net/minecraft/resource/DefaultResourcePack
  • Field Details

    • NAMESPACES

      public static final Set NAMESPACES
      Mappings:
      Namespace Name Mixin selector
      official a Lcvb;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 assetsIndex
      Mappings:
      Namespace Name Mixin selector
      official b Lcvb;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 assetsIndex)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcvb;<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)
      Specified by:
      open in interface ResourcePack
      Mappings:
      Namespace Name Mixin selector
      official a Lcvm;a(Loa;)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)
      Mappings:
      Namespace Name Mixin selector
      official c Lcvb;c(Loa;)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 Lcvb;d(Loa;)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 Lcvm;b(Loa;)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 getNamespaces()
      Specified by:
      getNamespaces in interface ResourcePack
      Mappings:
      Namespace Name Mixin selector
      official c Lcvm;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 ResourceMetadataProvider parseMetadata(MetadataSerializer serializer, String key)
      Specified by:
      parseMetadata in interface ResourcePack
      Mappings:
      Namespace Name Mixin selector
      official a Lcvm;a(Lcwk;Ljava/lang/String;)Lcwi;
      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()
      Specified by:
      getIcon in interface ResourcePack
      Mappings:
      Namespace Name Mixin selector
      official a Lcvm;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 Lcvm;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;