public abstract class AbstractResourcePack extends java.lang.Object implements ResourcePack
Modifier and Type | Field and Description |
---|---|
protected static ILogAgent |
resourceLog |
protected java.io.File |
resourcePackFile |
Constructor and Description |
---|
AbstractResourcePack(java.io.File par1File) |
Modifier and Type | Method and Description |
---|---|
java.io.InputStream |
getInputStream(ResourceLocation par1ResourceLocation) |
protected abstract java.io.InputStream |
getInputStreamByName(java.lang.String s) |
java.awt.image.BufferedImage |
getPackImage() |
MetadataSection |
getPackMetadata(MetadataSerializer par1MetadataSerializer,
java.lang.String par2Str) |
java.lang.String |
getPackName() |
protected static java.lang.String |
getRelativeName(java.io.File par0File,
java.io.File par1File) |
protected abstract boolean |
hasResourceName(java.lang.String s) |
protected void |
logNameNotLowercase(java.lang.String par1Str) |
boolean |
resourceExists(ResourceLocation par1ResourceLocation) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getResourceDomains
protected static final ILogAgent resourceLog
protected final java.io.File resourcePackFile
protected static java.lang.String getRelativeName(java.io.File par0File, java.io.File par1File)
public java.io.InputStream getInputStream(ResourceLocation par1ResourceLocation) throws java.io.IOException
getInputStream
in interface ResourcePack
java.io.IOException
public boolean resourceExists(ResourceLocation par1ResourceLocation)
resourceExists
in interface ResourcePack
protected abstract java.io.InputStream getInputStreamByName(java.lang.String s) throws java.io.IOException
java.io.IOException
protected abstract boolean hasResourceName(java.lang.String s)
protected void logNameNotLowercase(java.lang.String par1Str)
public MetadataSection getPackMetadata(MetadataSerializer par1MetadataSerializer, java.lang.String par2Str) throws java.io.IOException
getPackMetadata
in interface ResourcePack
java.io.IOException
public java.awt.image.BufferedImage getPackImage() throws java.io.IOException
getPackImage
in interface ResourcePack
java.io.IOException
public java.lang.String getPackName()
getPackName
in interface ResourcePack