Package net.minecraft.client.resources
Class AbstractResourcePack
- java.lang.Object
-
- net.minecraft.client.resources.AbstractResourcePack
-
- All Implemented Interfaces:
IResourcePack
- Direct Known Subclasses:
FolderResourcePack
public abstract class AbstractResourcePack extends java.lang.Object implements IResourcePack
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
resourcePackFile
-
Constructor Summary
Constructors Constructor Description AbstractResourcePack(java.lang.String resourcePackFileIn)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description java.io.InputStream
getInputStream(ResourceLocation location)
protected abstract java.io.InputStream
getInputStreamByName(java.lang.String var1)
ImageData
getPackImage()
<T extends IMetadataSection>
TgetPackMetadata(IMetadataSerializer parIMetadataSerializer, java.lang.String parString1)
java.lang.String
getPackName()
protected abstract boolean
hasResourceName(java.lang.String var1)
protected void
logNameNotLowercase(java.lang.String parString1)
boolean
resourceExists(ResourceLocation location)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.minecraft.client.resources.IResourcePack
getResourceDomains
-
-
-
-
Method Detail
-
getInputStream
public java.io.InputStream getInputStream(ResourceLocation location) throws java.io.IOException
- Specified by:
getInputStream
in interfaceIResourcePack
- Throws:
java.io.IOException
-
resourceExists
public boolean resourceExists(ResourceLocation location)
- Specified by:
resourceExists
in interfaceIResourcePack
-
getInputStreamByName
protected abstract java.io.InputStream getInputStreamByName(java.lang.String var1) throws java.io.IOException
- Throws:
java.io.IOException
-
hasResourceName
protected abstract boolean hasResourceName(java.lang.String var1)
-
logNameNotLowercase
protected void logNameNotLowercase(java.lang.String parString1)
-
getPackMetadata
public <T extends IMetadataSection> T getPackMetadata(IMetadataSerializer parIMetadataSerializer, java.lang.String parString1) throws java.io.IOException
- Specified by:
getPackMetadata
in interfaceIResourcePack
- Throws:
java.io.IOException
-
getPackImage
public ImageData getPackImage() throws java.io.IOException
- Specified by:
getPackImage
in interfaceIResourcePack
- Throws:
java.io.IOException
-
getPackName
public java.lang.String getPackName()
- Specified by:
getPackName
in interfaceIResourcePack
-
-