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
FieldsModifier 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static void
checkTrailingDirectoryPath
(String pPath) void
close()
private ResourceFilterSection
getPackFilterSection
(PackResources pPackResources) getResource
(ResourceLocation pLocation) getResourceStack
(ResourceLocation pLocation) listResources
(String pPath, Predicate<ResourceLocation> pFilter) listResourceStacks
(String pPath, Predicate<ResourceLocation> pFilter) 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 pPath, Predicate<ResourceLocation> pFilter) - Specified by:
listResources
in interfaceResourceManager
-
listResourceStacks
public Map<ResourceLocation,List<Resource>> listResourceStacks(String pPath, Predicate<ResourceLocation> pFilter) - 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
-