Package net.minecraft.resources
Class SimpleResource
java.lang.Object
net.minecraft.resources.SimpleResource
- All Implemented Interfaces:
Closeable
,AutoCloseable
,IResource
-
Field Summary
Modifier and TypeFieldDescriptionprivate final ResourceLocation
private com.google.gson.JsonObject
private final InputStream
private final InputStream
private final String
private boolean
-
Constructor Summary
ConstructorDescriptionSimpleResource
(String p_i47904_1_, ResourceLocation p_i47904_2_, InputStream p_i47904_3_, InputStream p_i47904_4_) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
boolean
<T> T
getMetadata
(IMetadataSectionSerializer<T> p_199028_1_) int
hashCode()
boolean
-
Field Details
-
sourceName
-
location
-
resourceStream
-
metadataStream
-
triedMetadata
private boolean triedMetadata -
metadata
private com.google.gson.JsonObject metadata
-
-
Constructor Details
-
SimpleResource
public SimpleResource(String p_i47904_1_, ResourceLocation p_i47904_2_, InputStream p_i47904_3_, @Nullable InputStream p_i47904_4_)
-
-
Method Details
-
getLocation
- Specified by:
getLocation
in interfaceIResource
-
getInputStream
- Specified by:
getInputStream
in interfaceIResource
-
hasMetadata
public boolean hasMetadata() -
getMetadata
- Specified by:
getMetadata
in interfaceIResource
-
getSourceName
- Specified by:
getSourceName
in interfaceIResource
-
equals
-
hashCode
public int hashCode() -
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-