Class FallbackResourceManager
java.lang.Object
net.minecraft.server.packs.resources.FallbackResourceManager
- All Implemented Interfaces:
ResourceManager
,ResourceProvider
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static class
Nested classes/interfaces inherited from interface net.minecraft.server.packs.resources.ResourceManager
ResourceManager.Empty
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(PackResources p_10609_) (package private) static ResourceLocation
getMetadataLocation
(ResourceLocation p_10625_) getResource
(ResourceLocation p_10614_) getResources
(ResourceLocation p_10623_) protected InputStream
getWrappedResource
(ResourceLocation p_10616_, PackResources p_10617_) boolean
hasResource
(ResourceLocation p_10620_) private boolean
isValidLocation
(ResourceLocation p_10629_) listResources
(String p_10611_, Predicate<String> p_10612_) private void
validateLocation
(ResourceLocation p_10627_)
-
Field Details
-
LOGGER
static final org.slf4j.Logger LOGGER -
fallbacks
-
type
-
namespace
-
-
Constructor Details
-
FallbackResourceManager
-
-
Method Details
-
add
-
getNamespaces
- Specified by:
getNamespaces
in interfaceResourceManager
-
getResource
- Specified by:
getResource
in interfaceResourceProvider
- Throws:
IOException
-
hasResource
- Specified by:
hasResource
in interfaceResourceManager
-
getWrappedResource
protected InputStream getWrappedResource(ResourceLocation p_10616_, PackResources p_10617_) throws IOException - Throws:
IOException
-
validateLocation
- Throws:
IOException
-
isValidLocation
-
getResources
- Specified by:
getResources
in interfaceResourceManager
- Throws:
IOException
-
listResources
- Specified by:
listResources
in interfaceResourceManager
-
listPacks
- Specified by:
listPacks
in interfaceResourceManager
-
getMetadataLocation
-