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