Package net.minecraft.resource
Class NamespaceResourceManager
java.lang.Object
net.minecraft.resource.NamespaceResourceManager
- All Implemented Interfaces:
ResourceManager
public class NamespaceResourceManager extends Object implements ResourceManager
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static classNamespaceResourceManager.DebugInputStreamNested classes/interfaces inherited from interface net.minecraft.resource.ResourceManager
ResourceManager.Empty -
Field Summary
Fields Modifier and Type Field Description private static LoggerLOGGERprivate Stringnamespaceprotected List<ResourcePack>packListprivate ResourceTypetype -
Constructor Summary
Constructors Constructor Description NamespaceResourceManager(ResourceType type, String namespace) -
Method Summary
Modifier and Type Method Description voidaddPack(ResourcePack pack)booleancontainsResource(Identifier id)Collection<Identifier>findResources(String resourceType, Predicate<String> pathPredicate)Set<String>getAllNamespaces()List<Resource>getAllResources(Identifier id)(package private) static IdentifiergetMetadataPath(Identifier id)ResourcegetResource(Identifier id)private booleanisPathAbsolute(Identifier id)protected InputStreamopen(Identifier id, ResourcePack pack)Stream<ResourcePack>streamResourcePacks()private voidvalidate(Identifier id)
-
Field Details
-
LOGGER
-
packList
-
type
-
namespace
-
-
Constructor Details
-
NamespaceResourceManager
-
-
Method Details
-
addPack
-
getAllNamespaces
- Specified by:
getAllNamespacesin interfaceResourceManager
-
getResource
- Specified by:
getResourcein interfaceResourceManager- Throws:
IOException
-
containsResource
- Specified by:
containsResourcein interfaceResourceManager
-
open
- Throws:
IOException
-
validate
- Throws:
IOException
-
isPathAbsolute
-
getAllResources
- Specified by:
getAllResourcesin interfaceResourceManager
-
findResources
- Specified by:
findResourcesin interfaceResourceManager
-
streamResourcePacks
- Specified by:
streamResourcePacksin interfaceResourceManager
-
getMetadataPath
-