public class DefaultResourcePack extends java.lang.Object implements IResourcePack
Modifier and Type | Field and Description |
---|---|
static java.util.Set<java.lang.String> |
DEFAULT_RESOURCE_DOMAINS |
Constructor and Description |
---|
DefaultResourcePack(ResourceIndex resourceIndexIn) |
Modifier and Type | Method and Description |
---|---|
java.io.InputStream |
getInputStream(ResourceLocation location) |
java.io.InputStream |
getInputStreamAssets(ResourceLocation location) |
java.awt.image.BufferedImage |
getPackImage() |
<T extends IMetadataSection> |
getPackMetadata(MetadataSerializer metadataSerializer,
java.lang.String metadataSectionName) |
java.lang.String |
getPackName() |
java.util.Set<java.lang.String> |
getResourceDomains() |
boolean |
resourceExists(ResourceLocation location) |
public static final java.util.Set<java.lang.String> DEFAULT_RESOURCE_DOMAINS
public DefaultResourcePack(ResourceIndex resourceIndexIn)
public java.io.InputStream getInputStream(ResourceLocation location) throws java.io.IOException
getInputStream
in interface IResourcePack
java.io.IOException
@Nullable public java.io.InputStream getInputStreamAssets(ResourceLocation location) throws java.io.IOException, java.io.FileNotFoundException
java.io.IOException
java.io.FileNotFoundException
public boolean resourceExists(ResourceLocation location)
resourceExists
in interface IResourcePack
public java.util.Set<java.lang.String> getResourceDomains()
getResourceDomains
in interface IResourcePack
@Nullable public <T extends IMetadataSection> T getPackMetadata(MetadataSerializer metadataSerializer, java.lang.String metadataSectionName) 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