public class DefaultResourcePack extends java.lang.Object implements IResourcePack
Modifier and Type | Field and Description |
---|---|
static java.util.Set |
defaultResourceDomains |
Constructor and Description |
---|
DefaultResourcePack(java.io.File par1File) |
Modifier and Type | Method and Description |
---|---|
void |
addResourceFile(java.lang.String par1Str,
java.io.File par2File) |
java.io.InputStream |
getInputStream(ResourceLocation par1ResourceLocation) |
java.awt.image.BufferedImage |
getPackImage() |
IMetadataSection |
getPackMetadata(IMetadataSerializer par1MetadataSerializer,
java.lang.String par2Str) |
java.lang.String |
getPackName() |
java.util.Set |
getResourceDomains() |
void |
readAssetsDir(java.io.File par1File) |
boolean |
resourceExists(ResourceLocation par1ResourceLocation) |
public java.io.InputStream getInputStream(ResourceLocation par1ResourceLocation) throws java.io.IOException
getInputStream
in interface IResourcePack
java.io.IOException
public void addResourceFile(java.lang.String par1Str, java.io.File par2File)
public boolean resourceExists(ResourceLocation par1ResourceLocation)
resourceExists
in interface IResourcePack
public java.util.Set getResourceDomains()
getResourceDomains
in interface IResourcePack
public void readAssetsDir(java.io.File par1File)
public IMetadataSection getPackMetadata(IMetadataSerializer par1MetadataSerializer, java.lang.String par2Str) 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