Class MultiPackResourceManager
java.lang.Object
net.minecraft.server.packs.resources.MultiPackResourceManager
- All Implemented Interfaces:
AutoCloseable
,CloseableResourceManager
,ResourceManager
,ResourceProvider
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.server.packs.resources.ResourceManager
ResourceManager.Empty
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Map<String,
FallbackResourceManager> private final List<PackResources>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
getResource
(ResourceLocation p_203813_) getResources
(ResourceLocation p_203810_) boolean
hasResource
(ResourceLocation p_203807_) listResources
(String p_203804_, Predicate<String> p_203805_)
-
Field Details
-
namespacedManagers
-
packs
-
-
Constructor Details
-
MultiPackResourceManager
-
-
Method Details
-
getNamespaces
- Specified by:
getNamespaces
in interfaceResourceManager
-
getResource
- Specified by:
getResource
in interfaceResourceProvider
- Throws:
IOException
-
hasResource
- Specified by:
hasResource
in interfaceResourceManager
-
getResources
- Specified by:
getResources
in interfaceResourceManager
- Throws:
IOException
-
listResources
- Specified by:
listResources
in interfaceResourceManager
-
listPacks
- Specified by:
listPacks
in interfaceResourceManager
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseableResourceManager
-