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_1265
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_5268 Lnet/minecraft/class_1265;field_5268: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_5269 Lnet/minecraft/class_1265;field_5269: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_5270 Lnet/minecraft/class_1265;field_5270:Lnet/minecraft/class_1605;
      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_5271 Lnet/minecraft/class_1265;field_5271: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_5272 Lnet/minecraft/class_1265;field_5272: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_5273 Lnet/minecraft/class_1265;field_5273:Lnet/minecraft/class_1275;
      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_5274 Lnet/minecraft/class_1265;field_5274: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_5275 Lnet/minecraft/class_1265;field_5275: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_1265;<init>(Ljava/lang/String;Lnet/minecraft/class_1605;Ljava/io/InputStream;Ljava/io/InputStream;Lnet/minecraft/class_1275;)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_4358 Lnet/minecraft/class_1257;method_4358()Lnet/minecraft/class_1605;
      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_4360 Lnet/minecraft/class_1257;method_4360()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_4361 Lnet/minecraft/class_1257;method_4361()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_4359 Lnet/minecraft/class_1257;method_4359(Ljava/lang/String;)Lnet/minecraft/class_1273;
      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_4362 Lnet/minecraft/class_1257;method_4362()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_1265;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_1265;hashCode()I
      named hashCode Lnet/minecraft/resource/ResourceImpl;hashCode()I