public class LegacyV2Adapter extends java.lang.Object implements IResourcePack
Constructor and Description |
---|
LegacyV2Adapter(IResourcePack packIn) |
Modifier and Type | Method and Description |
---|---|
java.io.InputStream |
getInputStream(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 LegacyV2Adapter(IResourcePack packIn)
public java.io.InputStream getInputStream(ResourceLocation location) throws java.io.IOException
getInputStream
in interface IResourcePack
java.io.IOException
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