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 |
private ResourceIndex |
resourceIndex |
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() |
private java.io.InputStream |
getResourceStream(ResourceLocation location) |
boolean |
resourceExists(ResourceLocation location) |
public static final java.util.Set<java.lang.String> DEFAULT_RESOURCE_DOMAINS
private final ResourceIndex resourceIndex
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
@Nullable private java.io.InputStream getResourceStream(ResourceLocation location)
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