| Modifier and Type | Field and Description |
|---|---|
private java.util.Map<java.lang.String,IMetadataSection> |
mapMetadataSections |
private java.io.InputStream |
mcmetaInputStream |
private com.google.gson.JsonObject |
mcmetaJson |
private boolean |
mcmetaJsonChecked |
private java.io.InputStream |
resourceInputStream |
private java.lang.String |
resourcePackName |
private MetadataSerializer |
srMetadataSerializer |
private ResourceLocation |
srResourceLocation |
| Constructor and Description |
|---|
SimpleResource(java.lang.String resourcePackNameIn,
ResourceLocation srResourceLocationIn,
java.io.InputStream resourceInputStreamIn,
java.io.InputStream mcmetaInputStreamIn,
MetadataSerializer srMetadataSerializerIn) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
equals(java.lang.Object p_equals_1_) |
java.io.InputStream |
getInputStream() |
<T extends IMetadataSection> |
getMetadata(java.lang.String sectionName) |
ResourceLocation |
getResourceLocation() |
java.lang.String |
getResourcePackName() |
int |
hashCode() |
boolean |
hasMetadata() |
private final java.util.Map<java.lang.String,IMetadataSection> mapMetadataSections
private final java.lang.String resourcePackName
private final ResourceLocation srResourceLocation
private final java.io.InputStream resourceInputStream
private final java.io.InputStream mcmetaInputStream
private final MetadataSerializer srMetadataSerializer
private boolean mcmetaJsonChecked
private com.google.gson.JsonObject mcmetaJson
public SimpleResource(java.lang.String resourcePackNameIn,
ResourceLocation srResourceLocationIn,
java.io.InputStream resourceInputStreamIn,
java.io.InputStream mcmetaInputStreamIn,
MetadataSerializer srMetadataSerializerIn)
public ResourceLocation getResourceLocation()
getResourceLocation in interface IResourcepublic java.io.InputStream getInputStream()
getInputStream in interface IResourcepublic boolean hasMetadata()
hasMetadata in interface IResource@Nullable public <T extends IMetadataSection> T getMetadata(java.lang.String sectionName)
getMetadata in interface IResourcepublic java.lang.String getResourcePackName()
getResourcePackName in interface IResourcepublic boolean equals(java.lang.Object p_equals_1_)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOException