public abstract class AbstractResourcePack extends java.lang.Object implements IResourcePack
Modifier and Type | Field and Description |
---|---|
protected java.io.File |
resourcePackFile |
Constructor and Description |
---|
AbstractResourcePack(java.io.File p_i1287_1_) |
Modifier and Type | Method and Description |
---|---|
java.io.InputStream |
getInputStream(ResourceLocation p_110590_1_) |
protected abstract java.io.InputStream |
getInputStreamByName(java.lang.String p_110591_1_) |
java.awt.image.BufferedImage |
getPackImage() |
IMetadataSection |
getPackMetadata(IMetadataSerializer p_135058_1_,
java.lang.String p_135058_2_) |
java.lang.String |
getPackName() |
protected static java.lang.String |
getRelativeName(java.io.File p_110595_0_,
java.io.File p_110595_1_) |
protected abstract boolean |
hasResourceName(java.lang.String p_110593_1_) |
protected void |
logNameNotLowercase(java.lang.String p_110594_1_) |
boolean |
resourceExists(ResourceLocation p_110589_1_) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getResourceDomains
protected static java.lang.String getRelativeName(java.io.File p_110595_0_, java.io.File p_110595_1_)
public java.io.InputStream getInputStream(ResourceLocation p_110590_1_) throws java.io.IOException
getInputStream
in interface IResourcePack
java.io.IOException
public boolean resourceExists(ResourceLocation p_110589_1_)
resourceExists
in interface IResourcePack
protected abstract java.io.InputStream getInputStreamByName(java.lang.String p_110591_1_) throws java.io.IOException
java.io.IOException
protected abstract boolean hasResourceName(java.lang.String p_110593_1_)
protected void logNameNotLowercase(java.lang.String p_110594_1_)
public IMetadataSection getPackMetadata(IMetadataSerializer p_135058_1_, java.lang.String p_135058_2_) throws java.io.IOException
getPackMetadata
in interface IResourcePack
java.io.IOException
public java.awt.image.BufferedImage getPackImage() throws java.io.IOException
getPackImage
in interface IResourcePack
java.io.IOException
public java.lang.String getPackName()
getPackName
in interface IResourcePack