public class VanillaPack extends java.lang.Object implements IResourcePack
| Modifier and Type | Field and Description |
|---|---|
static java.lang.Class<?> |
baseClass |
static java.nio.file.Path |
basePath |
java.util.Set<java.lang.String> |
resourceNamespaces |
| Constructor and Description |
|---|
VanillaPack(java.lang.String... resourceNamespacesIn) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
java.util.Collection<ResourceLocation> |
getAllResourceLocations(ResourcePackType type,
java.lang.String pathIn,
int maxDepth,
java.util.function.Predicate<java.lang.String> filter) |
protected java.io.InputStream |
getInputStreamVanilla(ResourcePackType type,
ResourceLocation location) |
protected java.io.InputStream |
getInputStreamVanilla(java.lang.String pathIn) |
<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) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisHiddenpublic static java.nio.file.Path basePath
public static java.lang.Class<?> baseClass
public final java.util.Set<java.lang.String> resourceNamespaces
public java.io.InputStream getRootResourceStream(java.lang.String fileName)
throws java.io.IOException
getRootResourceStream in interface IResourcePackjava.io.IOExceptionpublic java.io.InputStream getResourceStream(ResourcePackType type, ResourceLocation location) throws java.io.IOException
getResourceStream in interface IResourcePackjava.io.IOExceptionpublic java.util.Collection<ResourceLocation> getAllResourceLocations(ResourcePackType type, java.lang.String pathIn, int maxDepth, java.util.function.Predicate<java.lang.String> filter)
getAllResourceLocations in interface IResourcePack@Nullable protected java.io.InputStream getInputStreamVanilla(ResourcePackType type, ResourceLocation location)
@Nullable protected java.io.InputStream getInputStreamVanilla(java.lang.String pathIn)
public boolean resourceExists(ResourcePackType type, ResourceLocation location)
resourceExists in interface IResourcePackpublic java.util.Set<java.lang.String> getResourceNamespaces(ResourcePackType type)
getResourceNamespaces in interface IResourcePack@Nullable public <T> T getMetadata(IMetadataSectionSerializer<T> deserializer) throws java.io.IOException
getMetadata in interface IResourcePackjava.io.IOExceptionpublic java.lang.String getName()
getName in interface IResourcePackpublic void close()
close in interface java.io.Closeableclose in interface java.lang.AutoCloseable