public class VanillaPack extends java.lang.Object implements IResourcePack
| 修飾子とタイプ | フィールドと説明 |
|---|---|
static java.lang.Class<?> |
baseClass |
static java.nio.file.Path |
basePath |
java.util.Set<java.lang.String> |
resourceNamespaces |
| コンストラクタと説明 |
|---|
VanillaPack(java.lang.String... resourceNamespacesIn) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
void |
close() |
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) |
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 インタフェース内 IResourcePackjava.io.IOExceptionpublic java.io.InputStream getResourceStream(ResourcePackType type, ResourceLocation location) throws java.io.IOException
getResourceStream インタフェース内 IResourcePackjava.io.IOExceptionpublic 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)
getAllResourceLocations インタフェース内 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 インタフェース内 IResourcePackpublic java.util.Set<java.lang.String> getResourceNamespaces(ResourcePackType type)
getResourceNamespaces インタフェース内 IResourcePack@Nullable public <T> T getMetadata(IMetadataSectionSerializer<T> deserializer) throws java.io.IOException
getMetadata インタフェース内 IResourcePackjava.io.IOExceptionpublic java.lang.String getName()
getName インタフェース内 IResourcePackpublic void close()
close インタフェース内 java.io.Closeableclose インタフェース内 java.lang.AutoCloseable