public class DefaultResourcePack extends Object implements ResourcePack
Modifier and Type | Field and Description |
---|---|
static Set |
defaultResourceDomains |
Constructor and Description |
---|
DefaultResourcePack(File par1File) |
Modifier and Type | Method and Description |
---|---|
void |
addResourceFile(String par1Str,
File par2File) |
InputStream |
getInputStream(ResourceLocation par1ResourceLocation) |
BufferedImage |
getPackImage() |
MetadataSection |
getPackMetadata(MetadataSerializer par1MetadataSerializer,
String par2Str) |
String |
getPackName() |
Set |
getResourceDomains() |
void |
readAssetsDir(File par1File) |
boolean |
resourceExists(ResourceLocation par1ResourceLocation) |
public static final Set defaultResourceDomains
public DefaultResourcePack(File par1File)
public InputStream getInputStream(ResourceLocation par1ResourceLocation) throws IOException
getInputStream
in interface ResourcePack
IOException
public boolean resourceExists(ResourceLocation par1ResourceLocation)
resourceExists
in interface ResourcePack
public Set getResourceDomains()
getResourceDomains
in interface ResourcePack
public void readAssetsDir(File par1File)
public MetadataSection getPackMetadata(MetadataSerializer par1MetadataSerializer, String par2Str) throws IOException
getPackMetadata
in interface ResourcePack
IOException
public BufferedImage getPackImage() throws IOException
getPackImage
in interface ResourcePack
IOException
public String getPackName()
getPackName
in interface ResourcePack