public class DelegatingResourcePack extends ResourcePack
Modifier and Type | Field and Description |
---|---|
private java.util.List<DelegatableResourcePack> |
delegates |
private java.lang.String |
name |
private PackMetadataSection |
packInfo |
file
Constructor and Description |
---|
DelegatingResourcePack(java.lang.String id,
java.lang.String name,
PackMetadataSection packInfo) |
DelegatingResourcePack(java.lang.String id,
java.lang.String name,
PackMetadataSection packInfo,
java.util.List<DelegatableResourcePack> packs) |
Modifier and Type | Method and Description |
---|---|
void |
addDelegate(DelegatableResourcePack pack) |
void |
close() |
java.util.Collection<ResourceLocation> |
getAllResourceLocations(ResourcePackType type,
java.lang.String pathIn,
java.lang.String pathIn2,
int maxDepth,
java.util.function.Predicate<java.lang.String> filter) |
protected java.io.InputStream |
getInputStream(java.lang.String resourcePath) |
<T> T |
getMetadata(IMetadataSectionSerializer<T> deserializer) |
java.lang.String |
getName() |
java.util.Set<java.lang.String> |
getResourceNamespaces(ResourcePackType type) |
protected boolean |
resourceExists(java.lang.String resourcePath) |
getRelativeString, getResourceMetadata, getResourceStream, getRootResourceStream, onIgnoreNonLowercaseNamespace, resourceExists
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isHidden
private final java.util.List<DelegatableResourcePack> delegates
private final java.lang.String name
private final PackMetadataSection packInfo
public DelegatingResourcePack(java.lang.String id, java.lang.String name, PackMetadataSection packInfo)
public DelegatingResourcePack(java.lang.String id, java.lang.String name, PackMetadataSection packInfo, java.util.List<DelegatableResourcePack> packs)
public void addDelegate(DelegatableResourcePack pack)
public java.lang.String getName()
getName
in interface IResourcePack
getName
in class ResourcePack
public <T> T getMetadata(IMetadataSectionSerializer<T> deserializer) throws java.io.IOException
getMetadata
in interface IResourcePack
getMetadata
in class ResourcePack
java.io.IOException
public java.util.Collection<ResourceLocation> getAllResourceLocations(ResourcePackType type, java.lang.String pathIn, java.lang.String pathIn2, int maxDepth, java.util.function.Predicate<java.lang.String> filter)
public java.util.Set<java.lang.String> getResourceNamespaces(ResourcePackType type)
public void close() throws java.io.IOException
java.io.IOException
protected java.io.InputStream getInputStream(java.lang.String resourcePath) throws java.io.IOException
getInputStream
in class ResourcePack
java.io.IOException
protected boolean resourceExists(java.lang.String resourcePath)
resourceExists
in class ResourcePack