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 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