Class ResourceImpl

java.lang.Object
net.minecraft.resource.ResourceImpl
All Implemented Interfaces:
Resource

@Environment(CLIENT) public class ResourceImpl extends Object implements Resource
Mappings:
Namespace Name
official bno
intermediary net/minecraft/class_1662
named net/minecraft/resource/ResourceImpl
  • Field Details

    • metaProviders

      private final Map<String,ResourceMetadataProvider> metaProviders
      Mappings:
      Namespace Name Mixin selector
      official a Lbno;a:Ljava/util/Map;
      intermediary field_6635 Lnet/minecraft/class_1662;field_6635:Ljava/util/Map;
      named metaProviders Lnet/minecraft/resource/ResourceImpl;metaProviders:Ljava/util/Map;
    • packName

      private final String packName
      Mappings:
      Namespace Name Mixin selector
      official b Lbno;b:Ljava/lang/String;
      intermediary field_11270 Lnet/minecraft/class_1662;field_11270:Ljava/lang/String;
      named packName Lnet/minecraft/resource/ResourceImpl;packName:Ljava/lang/String;
    • id

      private final Identifier id
      Mappings:
      Namespace Name Mixin selector
      official c Lbno;c:Ljy;
      intermediary field_6636 Lnet/minecraft/class_1662;field_6636:Lnet/minecraft/class_1653;
      named id Lnet/minecraft/resource/ResourceImpl;id:Lnet/minecraft/util/Identifier;
    • inputStream

      private final InputStream inputStream
      Mappings:
      Namespace Name Mixin selector
      official d Lbno;d:Ljava/io/InputStream;
      intermediary field_6637 Lnet/minecraft/class_1662;field_6637:Ljava/io/InputStream;
      named inputStream Lnet/minecraft/resource/ResourceImpl;inputStream:Ljava/io/InputStream;
    • metaInputStream

      private final InputStream metaInputStream
      Mappings:
      Namespace Name Mixin selector
      official e Lbno;e:Ljava/io/InputStream;
      intermediary field_6638 Lnet/minecraft/class_1662;field_6638:Ljava/io/InputStream;
      named metaInputStream Lnet/minecraft/resource/ResourceImpl;metaInputStream:Ljava/io/InputStream;
    • metaSerializer

      private final MetadataSerializer metaSerializer
      Mappings:
      Namespace Name Mixin selector
      official f Lbno;f:Lbny;
      intermediary field_6639 Lnet/minecraft/class_1662;field_6639:Lnet/minecraft/class_1671;
      named metaSerializer Lnet/minecraft/resource/ResourceImpl;metaSerializer:Lnet/minecraft/util/MetadataSerializer;
    • readMetadata

      private boolean readMetadata
      Mappings:
      Namespace Name Mixin selector
      official g Lbno;g:Z
      intermediary field_6640 Lnet/minecraft/class_1662;field_6640:Z
      named readMetadata Lnet/minecraft/resource/ResourceImpl;readMetadata:Z
    • metadata

      private JsonObject metadata
      Mappings:
      Namespace Name Mixin selector
      official h Lbno;h:Lcom/google/gson/JsonObject;
      intermediary field_6641 Lnet/minecraft/class_1662;field_6641:Lcom/google/gson/JsonObject;
      named metadata Lnet/minecraft/resource/ResourceImpl;metadata:Lcom/google/gson/JsonObject;
  • Constructor Details

    • ResourceImpl

      public ResourceImpl(String packName, Identifier id, InputStream inputStream, InputStream metaInputStream, MetadataSerializer metaSerializer)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbno;<init>(Ljava/lang/String;Ljy;Ljava/io/InputStream;Ljava/io/InputStream;Lbny;)V
      intermediary <init> Lnet/minecraft/class_1662;<init>(Ljava/lang/String;Lnet/minecraft/class_1653;Ljava/io/InputStream;Ljava/io/InputStream;Lnet/minecraft/class_1671;)V
      named <init> Lnet/minecraft/resource/ResourceImpl;<init>(Ljava/lang/String;Lnet/minecraft/util/Identifier;Ljava/io/InputStream;Ljava/io/InputStream;Lnet/minecraft/util/MetadataSerializer;)V
  • Method Details

    • getId

      public Identifier getId()
      Specified by:
      getId in interface Resource
      Mappings:
      Namespace Name Mixin selector
      official a Lbnh;a()Ljy;
      intermediary method_10364 Lnet/minecraft/class_1652;method_10364()Lnet/minecraft/class_1653;
      named getId Lnet/minecraft/resource/Resource;getId()Lnet/minecraft/util/Identifier;
    • getInputStream

      public InputStream getInputStream()
      Specified by:
      getInputStream in interface Resource
      Mappings:
      Namespace Name Mixin selector
      official b Lbnh;b()Ljava/io/InputStream;
      intermediary method_5888 Lnet/minecraft/class_1652;method_5888()Ljava/io/InputStream;
      named getInputStream Lnet/minecraft/resource/Resource;getInputStream()Ljava/io/InputStream;
    • hasMetadata

      public boolean hasMetadata()
      Specified by:
      hasMetadata in interface Resource
      Mappings:
      Namespace Name Mixin selector
      official c Lbnh;c()Z
      intermediary method_5889 Lnet/minecraft/class_1652;method_5889()Z
      named hasMetadata Lnet/minecraft/resource/Resource;hasMetadata()Z
    • getMetadata

      public <T extends ResourceMetadataProvider> T getMetadata(String key)
      Specified by:
      getMetadata in interface Resource
      Mappings:
      Namespace Name Mixin selector
      official a Lbnh;a(Ljava/lang/String;)Lbnw;
      intermediary method_5887 Lnet/minecraft/class_1652;method_5887(Ljava/lang/String;)Lnet/minecraft/class_1669;
      named getMetadata Lnet/minecraft/resource/Resource;getMetadata(Ljava/lang/String;)Lnet/minecraft/client/resource/ResourceMetadataProvider;
    • getResourcePackName

      public String getResourcePackName()
      Specified by:
      getResourcePackName in interface Resource
      Mappings:
      Namespace Name Mixin selector
      official d Lbnh;d()Ljava/lang/String;
      intermediary method_10365 Lnet/minecraft/class_1652;method_10365()Ljava/lang/String;
      named getResourcePackName Lnet/minecraft/resource/Resource;getResourcePackName()Ljava/lang/String;
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
      Mappings:
      Namespace Name Mixin selector
      official equals Lbno;equals(Ljava/lang/Object;)Z
      intermediary equals Lnet/minecraft/class_1662;equals(Ljava/lang/Object;)Z
      named equals Lnet/minecraft/resource/ResourceImpl;equals(Ljava/lang/Object;)Z
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
      Mappings:
      Namespace Name Mixin selector
      official hashCode Lbno;hashCode()I
      intermediary hashCode Lnet/minecraft/class_1662;hashCode()I
      named hashCode Lnet/minecraft/resource/ResourceImpl;hashCode()I