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 static final org.slf4j.Logger
private final Map
<String, FallbackResourceManager> private final List
<PackResources> Fields inherited from interface net.minecraft.server.packs.resources.ResourceProvider
EMPTY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static void
checkTrailingDirectoryPath
(String p_249608_) void
close()
private ResourceFilterSection
getPackFilterSection
(PackResources p_215468_) getResource
(ResourceLocation p_215482_) getResourceStack
(ResourceLocation p_215466_) listResources
(String p_215476_, Predicate<ResourceLocation> p_215477_) listResourceStacks
(String p_215479_, Predicate<ResourceLocation> p_215480_) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.server.packs.resources.ResourceProvider
getResourceOrThrow, open, openAsReader
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
namespacedManagers
-
packs
-
-
Constructor Details
-
MultiPackResourceManager
-
-
Method Details
-
getPackFilterSection
-
getNamespaces
- Specified by:
getNamespaces
in interfaceResourceManager
-
getResource
- Specified by:
getResource
in interfaceResourceProvider
-
getResourceStack
- Specified by:
getResourceStack
in interfaceResourceManager
-
listResources
public Map<ResourceLocation,Resource> listResources(String p_215476_, Predicate<ResourceLocation> p_215477_) - Specified by:
listResources
in interfaceResourceManager
-
listResourceStacks
public Map<ResourceLocation,List<Resource>> listResourceStacks(String p_215479_, Predicate<ResourceLocation> p_215480_) - Specified by:
listResourceStacks
in interfaceResourceManager
-
checkTrailingDirectoryPath
-
listPacks
- Specified by:
listPacks
in interfaceResourceManager
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseableResourceManager
-