| 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() |
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 IResourcepublic <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