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