public interface IResourcePack extends java.io.Closeable, IForgeResourcePack
Modifier and Type | Method and Description |
---|---|
java.util.Collection<ResourceLocation> |
getAllResourceLocations(ResourcePackType type,
java.lang.String namespaceIn,
java.lang.String pathIn,
int maxDepthIn,
java.util.function.Predicate<java.lang.String> filterIn) |
<T> T |
getMetadata(IMetadataSectionSerializer<T> deserializer) |
java.lang.String |
getName() |
java.util.Set<java.lang.String> |
getResourceNamespaces(ResourcePackType type) |
java.io.InputStream |
getResourceStream(ResourcePackType type,
ResourceLocation location) |
java.io.InputStream |
getRootResourceStream(java.lang.String fileName) |
boolean |
resourceExists(ResourcePackType type,
ResourceLocation location) |
isHidden
java.io.InputStream getRootResourceStream(java.lang.String fileName) throws java.io.IOException
java.io.IOException
java.io.InputStream getResourceStream(ResourcePackType type, ResourceLocation location) throws java.io.IOException
java.io.IOException
java.util.Collection<ResourceLocation> getAllResourceLocations(ResourcePackType type, java.lang.String namespaceIn, java.lang.String pathIn, int maxDepthIn, java.util.function.Predicate<java.lang.String> filterIn)
boolean resourceExists(ResourcePackType type, ResourceLocation location)
java.util.Set<java.lang.String> getResourceNamespaces(ResourcePackType type)
@Nullable <T> T getMetadata(IMetadataSectionSerializer<T> deserializer) throws java.io.IOException
java.io.IOException
java.lang.String getName()