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 class
NamespaceResourceManager.DebugInputStream
Nested classes/interfaces inherited from interface net.minecraft.resource.ResourceManager
ResourceManager.Empty
-
Field Summary
Fields Modifier and Type Field Description private static Logger
LOGGER
private String
namespace
protected List<ResourcePack>
packList
private ResourceType
type
-
Constructor Summary
Constructors Constructor Description NamespaceResourceManager(ResourceType type, String namespace)
-
Method Summary
Modifier and Type Method Description void
addPack(ResourcePack pack)
boolean
containsResource(Identifier id)
Collection<Identifier>
findResources(String resourceType, Predicate<String> pathPredicate)
Set<String>
getAllNamespaces()
List<Resource>
getAllResources(Identifier id)
(package private) static Identifier
getMetadataPath(Identifier id)
Resource
getResource(Identifier id)
private boolean
isPathAbsolute(Identifier id)
protected InputStream
open(Identifier id, ResourcePack pack)
Stream<ResourcePack>
streamResourcePacks()
private void
validate(Identifier id)
-
Field Details
-
LOGGER
-
packList
-
type
-
namespace
-
-
Constructor Details
-
NamespaceResourceManager
-
-
Method Details
-
addPack
-
getAllNamespaces
- Specified by:
getAllNamespaces
in interfaceResourceManager
-
getResource
- Specified by:
getResource
in interfaceResourceManager
- Throws:
IOException
-
containsResource
- Specified by:
containsResource
in interfaceResourceManager
-
open
- Throws:
IOException
-
validate
- Throws:
IOException
-
isPathAbsolute
-
getAllResources
- Specified by:
getAllResources
in interfaceResourceManager
-
findResources
- Specified by:
findResources
in interfaceResourceManager
-
streamResourcePacks
- Specified by:
streamResourcePacks
in interfaceResourceManager
-
getMetadataPath
-