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 IResourcePackjava.io.IOExceptionprivate ResourceLocation fudgePath(ResourceLocation p_191382_1_)
public boolean resourceExists(ResourceLocation location)
resourceExists in interface IResourcePackpublic 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 IResourcePackjava.io.IOExceptionpublic java.awt.image.BufferedImage getPackImage()
throws java.io.IOException
getPackImage in interface IResourcePackjava.io.IOExceptionpublic java.lang.String getPackName()
getPackName in interface IResourcePack