Package net.minecraft.resource
Class ResourceImpl
java.lang.Object
net.minecraft.resource.ResourceImpl
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Resource
public class ResourceImpl extends Object implements Resource
- Mappings:
Namespace Name official add
intermediary net/minecraft/class_3306
named net/minecraft/resource/ResourceImpl
-
Field Summary
Fields Modifier and Type Field Description private Identifier
id
private InputStream
inputStream
private JsonObject
metadata
private InputStream
metaInputStream
private String
packName
private boolean
readMetadata
-
Constructor Summary
Constructors Constructor Description ResourceImpl(String packName, Identifier id, InputStream inputStream, InputStream metaInputStream)
-
Method Summary
Modifier and Type Method Description void
close()
boolean
equals(Object o)
Identifier
getId()
InputStream
getInputStream()
<T> T
getMetadata(ResourceMetadataReader<T> metaReader)
String
getResourcePackName()
int
hashCode()
boolean
hasMetadata()
-
Field Details
-
packName
- Mappings:
Namespace Name Mixin selector official a
Ladd;a:Ljava/lang/String;
intermediary field_14296
Lnet/minecraft/class_3306;field_14296:Ljava/lang/String;
named packName
Lnet/minecraft/resource/ResourceImpl;packName:Ljava/lang/String;
-
id
- Mappings:
Namespace Name Mixin selector official b
Ladd;b:Lwb;
intermediary field_14299
Lnet/minecraft/class_3306;field_14299:Lnet/minecraft/class_2960;
named id
Lnet/minecraft/resource/ResourceImpl;id:Lnet/minecraft/util/Identifier;
-
inputStream
- Mappings:
Namespace Name Mixin selector official c
Ladd;c:Ljava/io/InputStream;
intermediary field_14298
Lnet/minecraft/class_3306;field_14298:Ljava/io/InputStream;
named inputStream
Lnet/minecraft/resource/ResourceImpl;inputStream:Ljava/io/InputStream;
-
metaInputStream
- Mappings:
Namespace Name Mixin selector official d
Ladd;d:Ljava/io/InputStream;
intermediary field_14300
Lnet/minecraft/class_3306;field_14300:Ljava/io/InputStream;
named metaInputStream
Lnet/minecraft/resource/ResourceImpl;metaInputStream:Ljava/io/InputStream;
-
readMetadata
- Mappings:
Namespace Name Mixin selector official e
Ladd;e:Z
intermediary field_14297
Lnet/minecraft/class_3306;field_14297:Z
named readMetadata
Lnet/minecraft/resource/ResourceImpl;readMetadata:Z
-
metadata
- Mappings:
Namespace Name Mixin selector official f
Ladd;f:Lcom/google/gson/JsonObject;
intermediary field_14302
Lnet/minecraft/class_3306;field_14302: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, @Nullable InputStream metaInputStream)- Mappings:
Namespace Name Mixin selector official <init>
Ladd;<init>(Ljava/lang/String;Lwb;Ljava/io/InputStream;Ljava/io/InputStream;)V
intermediary <init>
Lnet/minecraft/class_3306;<init>(Ljava/lang/String;Lnet/minecraft/class_2960;Ljava/io/InputStream;Ljava/io/InputStream;)V
named <init>
Lnet/minecraft/resource/ResourceImpl;<init>(Ljava/lang/String;Lnet/minecraft/util/Identifier;Ljava/io/InputStream;Ljava/io/InputStream;)V
-
-
Method Details
-
getId
-
getInputStream
- Specified by:
getInputStream
in interfaceResource
- Mappings:
Namespace Name Mixin selector official b
Lacw;b()Ljava/io/InputStream;
intermediary method_14482
Lnet/minecraft/class_3298;method_14482()Ljava/io/InputStream;
named getInputStream
Lnet/minecraft/resource/Resource;getInputStream()Ljava/io/InputStream;
-
hasMetadata
- Mappings:
Namespace Name Mixin selector official c
Ladd;c()Z
intermediary method_14484
Lnet/minecraft/class_3306;method_14484()Z
named hasMetadata
Lnet/minecraft/resource/ResourceImpl;hasMetadata()Z
-
getMetadata
- Specified by:
getMetadata
in interfaceResource
- Mappings:
Namespace Name Mixin selector official a
Lacw;a(Lacd;)Ljava/lang/Object;
intermediary method_14481
Lnet/minecraft/class_3298;method_14481(Lnet/minecraft/class_3270;)Ljava/lang/Object;
named getMetadata
Lnet/minecraft/resource/Resource;getMetadata(Lnet/minecraft/resource/metadata/ResourceMetadataReader;)Ljava/lang/Object;
-
getResourcePackName
- Specified by:
getResourcePackName
in interfaceResource
- Mappings:
Namespace Name Mixin selector official d
Lacw;d()Ljava/lang/String;
intermediary method_14480
Lnet/minecraft/class_3298;method_14480()Ljava/lang/String;
named getResourcePackName
Lnet/minecraft/resource/Resource;getResourcePackName()Ljava/lang/String;
-
equals
-
hashCode
public int hashCode() -
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector official close
Ladd;close()V
intermediary close
Lnet/minecraft/class_3306;close()V
named close
Lnet/minecraft/resource/ResourceImpl;close()V
-