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 IResource
public java.io.InputStream getInputStream()
getInputStream
in interface IResource
public boolean hasMetadata()
hasMetadata
in interface IResource
@Nullable public <T extends IMetadataSection> T getMetadata(java.lang.String sectionName)
getMetadata
in interface IResource
public java.lang.String getResourcePackName()
getResourcePackName
in interface IResource
public boolean equals(java.lang.Object p_equals_1_)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
java.io.IOException